|
LLVM 24.0.0git
|
A Region class that tracks its instructions score. More...
#include "llvm/Transforms/Vectorize/SandboxVectorizer/RegionWithScore.h"
Public Member Functions | |
| RegionWithScore (Context &Ctx, const TargetTransformInfo &TTI) | |
| RegionWithScore (Region &&Rgn, const TargetTransformInfo &TTI) | |
| const ScoreBoard & | getScoreboard () const |
| \Returns the ScoreBoard data structure that keeps track of instr costs. | |
| Public Member Functions inherited from llvm::sandboxir::Region | |
| Region (Context &Ctx) | |
| virtual | ~Region () |
| Region (const Region &)=delete | |
| Region (Region &&)=default | |
| Context & | getContext () const |
| bool | contains (Instruction *I) const |
| Returns true if I is in the Region. | |
| bool | empty () const |
| Returns true if the Region has no instructions. | |
| void | setAux (ArrayRef< Instruction * > Aux) |
| Set the auxiliary vector. | |
| const SmallVector< Instruction * > & | getAux () const |
| \Returns the auxiliary vector. | |
| void | clearAux () |
| Clears all auxiliary data. | |
| iterator | begin () |
| iterator | end () |
| iterator_range< iterator > | insts () |
| RegionClassID | getSubclassID () const |
| Function & | getParentFunction () const |
| Returns the function in which the region is defined. | |
| bool | operator== (const Region &Other) const |
| This is an expensive check, meant for testing. | |
| bool | operator!= (const Region &other) const |
| void | dump (raw_ostream &OS) const |
| void | dump () const |
Static Public Member Functions | |
| static bool | classof (const Region *From) |
| static LLVM_ABI SmallVector< std::unique_ptr< RegionWithScore > > | createRegionsFromMD (Function &F, const TargetTransformInfo &TTI) |
| Static Public Member Functions inherited from llvm::sandboxir::Region | |
| static SmallVector< std::unique_ptr< Region > > | createRegionsFromMD (Function &F) |
Friends | |
| class | RegionsFromBBs |
Additional Inherited Members | |
| Public Types inherited from llvm::sandboxir::Region | |
| using | iterator = decltype(Insts.begin()) |
| Protected Member Functions inherited from llvm::sandboxir::Region | |
| void | addRaw (Instruction *I) |
Adds I to the set. | |
| void | setAux (unsigned Idx, Instruction *I) |
Set I as the Idx'th element in the auxiliary vector. | |
| void | dropAuxMetadata (Instruction *I) |
Helper for dropping Aux metadata for I. | |
| void | removeFromAux (Instruction *I) |
Remove instruction I from Aux and drop metadata. | |
| Region (Context &Ctx, RegionClassID ID) | |
| Static Protected Member Functions inherited from llvm::sandboxir::Region | |
| template<typename RegionT, typename RegionFactoryT> | |
| static SmallVector< std::unique_ptr< RegionT > > | createRegionsFromMD (Function &F, RegionFactoryT Factory) |
| Protected Attributes inherited from llvm::sandboxir::Region | |
| SetVector< Instruction * > | Insts |
| All the instructions in the Region. | |
| SmallVector< Instruction * > | Aux |
| An auxiliary sequence of Instruction-Index pairs. | |
| MDNode * | RegionMDN |
| MDNode that we'll use to mark instructions as being part of the region. | |
| Context & | Ctx |
| RegionClassID | ID |
| Context::CallbackID | CreateInstCB |
| ID (for later deregistration) of the "create instruction" callback. | |
| Context::CallbackID | EraseInstCB |
| ID (for later deregistration) of the "erase instruction" callback. | |
| Static Protected Attributes inherited from llvm::sandboxir::Region | |
| static constexpr const char * | MDKind = "sandboxvec" |
| static constexpr const char * | RegionStr = "sandboxregion" |
| static constexpr const char * | AuxMDKind = "sandboxaux" |
A Region class that tracks its instructions score.
Definition at line 57 of file RegionWithScore.h.
|
inline |
Definition at line 76 of file RegionWithScore.h.
References llvm::sandboxir::Region::Context, llvm::sandboxir::Region::Ctx, llvm::sandboxir::Region::Region(), and llvm::sandboxir::RegionWithScoreID.
|
inline |
Definition at line 78 of file RegionWithScore.h.
References llvm::move(), and llvm::sandboxir::Region::Region().
Definition at line 81 of file RegionWithScore.h.
References llvm::sandboxir::Region::getSubclassID(), llvm::sandboxir::Region::Region(), and llvm::sandboxir::RegionWithScoreID.
|
static |
Definition at line 36 of file RegionWithScore.cpp.
References llvm::sandboxir::Region::createRegionsFromMD(), and F.
Referenced by llvm::sandboxir::RegionsFromMetadata::runOnFunction().
|
inline |
\Returns the ScoreBoard data structure that keeps track of instr costs.
Definition at line 86 of file RegionWithScore.h.
|
friend |
Definition at line 66 of file RegionWithScore.h.
References I, and RegionsFromBBs.
Referenced by RegionsFromBBs.