class VPPredInstPHIRecipe
Declaration
class VPPredInstPHIRecipe : public VPRecipeBase, public VPValue { /* full declaration omitted */ };
Description
VPPredInstPHIRecipe is a recipe for generating the phi nodes needed when control converges back from a Branch-on-Mask. The phi nodes are needed in order to merge values that are set under such a branch and feed their uses. The phi nodes can be scalar or vector depending on the users of the value. This recipe works in concert with VPBranchOnMaskRecipe.
Declared at: llvm/lib/Transforms/Vectorize/VPlan.h:1671
Inherits from: VPRecipeBase, VPValue
Member Variables
Inherited from VPValue:
Method Overview
- public VPPredInstPHIRecipe(llvm::VPValue * PredV)
- public static inline bool classof(const llvm::VPDef * D)
- public void execute(llvm::VPTransformState & State)
- public void print(llvm::raw_ostream & O, const llvm::Twine & Indent, llvm::VPSlotTracker & SlotTracker) const
- public bool usesScalars(const llvm::VPValue * Op) const
- public ~VPPredInstPHIRecipe()
Inherited from VPValue:
- public addUser
- public dump
- public getDef
- public getDef
- public getLiveInIRValue
- public getLiveInIRValue
- public getNumUsers
- public getUnderlyingValue
- public getUnderlyingValue
- public getVPValueID
- public hasMoreThanOneUniqueUser
- public print
- public printAsOperand
- public removeUser
- public replaceAllUsesWith
- protected setUnderlyingValue
- public user_begin
- public user_begin
- public user_end
- public user_end
- public users
- public users
Inherited from VPRecipeBase:
- public classof
- public classof
- public eraseFromParent
- public execute
- public getParent
- public getParent
- public getUnderlyingInstr
- public getUnderlyingInstr
- public insertAfter
- public insertBefore
- public insertBefore
- public isPhi
- public mayHaveSideEffects
- public mayReadFromMemory
- public mayReadOrWriteMemory
- public mayWriteToMemory
- public moveAfter
- public moveBefore
- public removeFromParent
Inherited from VPUser:
- public addOperand
- public classof
- public getNumOperands
- public getOperand
- public getVPUserID
- public onlyFirstLaneUsed
- public op_begin
- public op_begin
- public op_end
- public op_end
- public operands
- public operands
- protected printOperands
- public removeLastOperand
- public setOperand
- public usesScalars
Inherited from VPDef:
- public definedValues
- public definedValues
- public dump
- public getNumDefinedValues
- public getVPDefID
- public getVPSingleValue
- public getVPSingleValue
- public getVPValue
- public getVPValue
- public print
Methods
¶VPPredInstPHIRecipe(llvm::VPValue* PredV)
VPPredInstPHIRecipe(llvm::VPValue* PredV)
Description
Construct a VPPredInstPHIRecipe given \p PredInst whose value needs a phi nodes after merging back from a Branch-on-Mask.
Declared at: llvm/lib/Transforms/Vectorize/VPlan.h:1675
Parameters
- llvm::VPValue* PredV
¶static inline bool classof(const llvm::VPDef* D)
static inline bool classof(const llvm::VPDef* D)
Description
Method to support type inquiry through isa, cast, and dyn_cast.
Declared at: llvm/lib/Transforms/Vectorize/VPlan.h:1681
Parameters
- const llvm::VPDef* D
¶void execute(llvm::VPTransformState& State)
void execute(llvm::VPTransformState& State)
Description
Generates phi nodes for live-outs as needed to retain SSA form.
Declared at: llvm/lib/Transforms/Vectorize/VPlan.h:1686
Parameters
- llvm::VPTransformState& State
¶void print(llvm::raw_ostream& O,
const llvm::Twine& Indent,
llvm::VPSlotTracker& SlotTracker) const
void print(llvm::raw_ostream& O,
const llvm::Twine& Indent,
llvm::VPSlotTracker& SlotTracker) const
Description
Print the recipe.
Declared at: llvm/lib/Transforms/Vectorize/VPlan.h:1690
Parameters
- llvm::raw_ostream& O
- const llvm::Twine& Indent
- llvm::VPSlotTracker& SlotTracker
¶bool usesScalars(const llvm::VPValue* Op) const
bool usesScalars(const llvm::VPValue* Op) const
Description
Returns true if the recipe uses scalars of operand \p Op.
Declared at: llvm/lib/Transforms/Vectorize/VPlan.h:1695
Parameters
- const llvm::VPValue* Op
¶~VPPredInstPHIRecipe()
~VPPredInstPHIRecipe()
Declared at: llvm/lib/Transforms/Vectorize/VPlan.h:1678