LLVM  6.0.0svn
Public Types | Public Member Functions | List of all members
llvm::VPRecipeBase Class Referenceabstract

VPRecipeBase is a base class modeling a sequence of one or more output IR instructions. More...

#include "Transforms/Vectorize/VPlan.h"

Inheritance diagram for llvm::VPRecipeBase:
Inheritance graph
[legend]
Collaboration diagram for llvm::VPRecipeBase:
Collaboration graph
[legend]

Public Types

using VPRecipeTy = enum { VPBlendSC, VPBranchOnMaskSC, VPInstructionSC, VPInterleaveSC, VPPredInstPHISC, VPReplicateSC, VPWidenIntOrFpInductionSC, VPWidenMemoryInstructionSC, VPWidenPHISC, VPWidenSC, }
 An enumeration for keeping track of the concrete subclass of VPRecipeBase that is actually instantiated. More...
 

Public Member Functions

 VPRecipeBase (const unsigned char SC)
 
virtual ~VPRecipeBase ()=default
 
unsigned getVPRecipeID () const
 
VPBasicBlockgetParent ()
 
const VPBasicBlockgetParent () const
 
virtual void execute (struct VPTransformState &State)=0
 The method which generates the output IR instructions that correspond to this VPRecipe, thereby "executing" the VPlan. More...
 
virtual void print (raw_ostream &O, const Twine &Indent) const =0
 Each recipe prints itself. More...
 
- Public Member Functions inherited from llvm::ilist_node_with_parent< VPRecipeBase, VPBasicBlock >
VPRecipeBasegetPrevNode ()
 
const VPRecipeBasegetPrevNode () const
 Get the previous node, or nullptr for the list head. More...
 
VPRecipeBasegetNextNode ()
 Get the next node, or nullptr for the list tail. More...
 
const VPRecipeBasegetNextNode () const
 Get the next node, or nullptr for the list tail. More...
 
- Public Member Functions inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< VPRecipeBase, Options... >::type >
self_iterator getIterator ()
 
const_self_iterator getIterator () const
 
reverse_self_iterator getReverseIterator ()
 
const_reverse_self_iterator getReverseIterator () const
 
bool isSentinel () const
 Check whether this is the sentinel node. More...
 

Additional Inherited Members

- Protected Types inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< VPRecipeBase, Options... >::type >
using self_iterator = ilist_iterator< ilist_detail::compute_node_options< VPRecipeBase, Options... >::type, false, false >
 
using const_self_iterator = ilist_iterator< ilist_detail::compute_node_options< VPRecipeBase, Options... >::type, false, true >
 
using reverse_self_iterator = ilist_iterator< ilist_detail::compute_node_options< VPRecipeBase, Options... >::type, true, false >
 
using const_reverse_self_iterator = ilist_iterator< ilist_detail::compute_node_options< VPRecipeBase, Options... >::type, true, true >
 
- Protected Member Functions inherited from llvm::ilist_node_with_parent< VPRecipeBase, VPBasicBlock >
 ilist_node_with_parent ()=default
 
- Protected Member Functions inherited from llvm::ilist_node_impl< ilist_detail::compute_node_options< VPRecipeBase, Options... >::type >
 ilist_node_impl ()=default
 

Detailed Description

VPRecipeBase is a base class modeling a sequence of one or more output IR instructions.

Definition at line 496 of file VPlan.h.

Member Typedef Documentation

◆ VPRecipeTy

using llvm::VPRecipeBase::VPRecipeTy = enum { VPBlendSC, VPBranchOnMaskSC, VPInstructionSC, VPInterleaveSC, VPPredInstPHISC, VPReplicateSC, VPWidenIntOrFpInductionSC, VPWidenMemoryInstructionSC, VPWidenPHISC, VPWidenSC, }

An enumeration for keeping track of the concrete subclass of VPRecipeBase that is actually instantiated.

Values of this enumeration are kept in the SubclassID field of the VPRecipeBase objects. They are used for concrete type identification.

Definition at line 521 of file VPlan.h.

Constructor & Destructor Documentation

◆ VPRecipeBase()

llvm::VPRecipeBase::VPRecipeBase ( const unsigned char  SC)
inline

Definition at line 523 of file VPlan.h.

◆ ~VPRecipeBase()

virtual llvm::VPRecipeBase::~VPRecipeBase ( )
virtualdefault

Member Function Documentation

◆ execute()

virtual void llvm::VPRecipeBase::execute ( struct VPTransformState State)
pure virtual

The method which generates the output IR instructions that correspond to this VPRecipe, thereby "executing" the VPlan.

Implemented in llvm::VPInstruction.

◆ getParent() [1/2]

VPBasicBlock* llvm::VPRecipeBase::getParent ( )
inline
Returns
the VPBasicBlock which this VPRecipe belongs to.

Definition at line 532 of file VPlan.h.

◆ getParent() [2/2]

const VPBasicBlock* llvm::VPRecipeBase::getParent ( ) const
inline

Definition at line 533 of file VPlan.h.

References llvm::RISCVFenceField::O, and print().

◆ getVPRecipeID()

unsigned llvm::VPRecipeBase::getVPRecipeID ( ) const
inline
Returns
an ID for the concrete type of this object. This is used to implement the classof checks. This should not be used for any other purpose, as the values may change as LLVM evolves.

Definition at line 529 of file VPlan.h.

Referenced by AddRuntimeUnrollDisableMetaData(), and llvm::VPInstruction::classof().

◆ print()

virtual void llvm::VPRecipeBase::print ( raw_ostream O,
const Twine Indent 
) const
pure virtual

Each recipe prints itself.

Implemented in llvm::VPInstruction.


The documentation for this class was generated from the following file: