LLVM API Documentation


Public Member Functions | |
| LoaderPass (const std::string &filename="") | |
| virtual void | getAnalysisUsage (AnalysisUsage &AU) const |
| virtual const char * | getPassName () const |
| virtual bool | runOnModule (Module &M) |
| run - Load the profile information from the specified file. | |
Static Public Attributes | |
| char | ID = 0 |
|
|
Definition at line 36 of file ProfileInfoLoaderPass.cpp. |
|
|
getAnalysisUsage - This function should be overriden by passes that need analysis information to do their job. If a pass specifies that it uses a particular analysis result to this function, it can then use the getAnalysis<AnalysisType>() function, below. Reimplemented from llvm::Pass. Definition at line 41 of file ProfileInfoLoaderPass.cpp. References llvm::AnalysisUsage::setPreservesAll(). |
|
|
getPassName - Return a nice clean name for a pass. This usually implemented in terms of the name that is registered by one of the Registration templates, but can be overloaded directly. Reimplemented from llvm::Pass. Definition at line 45 of file ProfileInfoLoaderPass.cpp. |
|
|
run - Load the profile information from the specified file.
Implements llvm::ModulePass. Definition at line 69 of file ProfileInfoLoaderPass.cpp. References llvm::ProfileInfoLoader::getEdgeCounts(), llvm::TerminatorInst::getNumSuccessors(), llvm::TerminatorInst::getSuccessor(), and llvm::BasicBlock::getTerminator(). |
|
|
Reimplemented from llvm::ProfileInfo. Definition at line 54 of file ProfileInfoLoaderPass.cpp. |