Go to the documentation of this file.
15 #ifndef LLVM_ANALYSIS_BASICBLOCKSECTIONSINFO_H
16 #define LLVM_ANALYSIS_BASICBLOCKSECTIONSINFO_H
61 return "Basic Block Sections Profile Reader";
74 std::pair<bool, SmallVector<BBClusterInfo>>
82 auto R = FuncAliasMap.find(FuncName);
83 return R == FuncAliasMap.end() ? FuncName : R->second;
109 #endif // LLVM_ANALYSIS_BASICBLOCKSECTIONSINFO_H
This is an optimization pass for GlobalISel generic memory operations.
BasicBlockSectionsProfileReader(const MemoryBuffer *Buf)
ImmutablePass class - This class is used to provide information that does not need to be run.
void initializeBasicBlockSectionsProfileReaderPass(PassRegistry &)
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
BasicBlockSectionsProfileReader()
This interface provides simple read-only access to a block of memory, and provides simple methods for...
ImmutablePass * createBasicBlockSectionsProfileReaderPass(const MemoryBuffer *Buf)
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
bool isFunctionHot(StringRef FuncName) const
void initializePass() override
Read profiles of basic blocks if available here.
unsigned PositionInCluster
StringRef - Represent a constant reference to a string, i.e.
std::pair< bool, SmallVector< BBClusterInfo > > getBBClusterInfoForFunction(StringRef FuncName) const