|
LLVM 23.0.0git
|
A Region class that tracks its instructions score. More...
#include "llvm/Transforms/Vectorize/SandboxVectorizer/RegionWithScore.h"
Static Public Member Functions | |
| static bool | classof (const Region *From) |
| static SmallVector< std::unique_ptr< RegionWithScore > > | createRegionsFromMD (Function &F, const TargetTransformInfo &TTI) |
| Static Public Member Functions inherited from llvm::sandboxir::Region | |
| static LLVM_ABI 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. | |
| LLVM_ABI | 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.