Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Transforms/Vectorize/VPlan.h
Show First 20 Lines • Show All 1,045 Lines • ▼ Show 20 Lines | void addIncoming(VPValue *IncomingV, VPBasicBlock *IncomingBlock) { | ||||
IncomingBlocks.push_back(IncomingBlock); | IncomingBlocks.push_back(IncomingBlock); | ||||
} | } | ||||
/// Returns the \p I th incoming VPValue. | /// Returns the \p I th incoming VPValue. | ||||
VPValue *getIncomingValue(unsigned I) { return getOperand(I); } | VPValue *getIncomingValue(unsigned I) { return getOperand(I); } | ||||
/// Returns the \p I th incoming VPBasicBlock. | /// Returns the \p I th incoming VPBasicBlock. | ||||
VPBasicBlock *getIncomingBlock(unsigned I) { return IncomingBlocks[I]; } | VPBasicBlock *getIncomingBlock(unsigned I) { return IncomingBlocks[I]; } | ||||
RecurrenceDescriptor *getRecurrenceDescriptor() { return RdxDesc; } | |||||
}; | }; | ||||
/// A recipe for vectorizing a phi-node as a sequence of mask-based select | /// A recipe for vectorizing a phi-node as a sequence of mask-based select | ||||
/// instructions. | /// instructions. | ||||
class VPBlendRecipe : public VPRecipeBase, public VPValue { | class VPBlendRecipe : public VPRecipeBase, public VPValue { | ||||
PHINode *Phi; | PHINode *Phi; | ||||
public: | public: | ||||
▲ Show 20 Lines • Show All 1,311 Lines • Show Last 20 Lines |