LLVM API Documentation
#include <ProfileInfoLoader.h>
Collaboration diagram for llvm::ProfileInfoLoader:
Public Types | |
typedef std::pair< BasicBlock *, unsigned > | Edge |
Public Member Functions | |
ProfileInfoLoader (const char *ToolName, const std::string &Filename, Module &M) | |
unsigned | getNumExecutions () const |
const std::string & | getExecution (unsigned i) const |
void | getFunctionCounts (std::vector< std::pair< Function *, unsigned > > &Counts) |
bool | hasAccurateBlockCounts () const |
bool | hasAccurateEdgeCounts () const |
void | getBlockCounts (std::vector< std::pair< BasicBlock *, unsigned > > &Counts) |
void | getEdgeCounts (std::vector< std::pair< Edge, unsigned > > &Counts) |
void | getBBTrace (std::vector< BasicBlock * > &Trace) |
Definition at line 29 of file ProfileInfoLoader.h.
typedef std::pair<BasicBlock*, unsigned> llvm::ProfileInfoLoader::Edge |
Definition at line 78 of file ProfileInfoLoader.h.
ProfileInfoLoader::ProfileInfoLoader | ( | const char * | ToolName, | |
const std::string & | Filename, | |||
Module & | M | |||
) |
Definition at line 74 of file ProfileInfoLoader.cpp.
References ArgumentInfo, BBTraceInfo, BlockInfo, ByteSwap(), EdgeInfo, F, FunctionInfo, and ReadProfilingBlock().
unsigned llvm::ProfileInfoLoader::getNumExecutions | ( | ) | const [inline] |
Definition at line 42 of file ProfileInfoLoader.h.
const std::string& llvm::ProfileInfoLoader::getExecution | ( | unsigned | i | ) | const [inline] |
Definition at line 43 of file ProfileInfoLoader.h.
void ProfileInfoLoader::getFunctionCounts | ( | std::vector< std::pair< Function *, unsigned > > & | Counts | ) |
Definition at line 146 of file ProfileInfoLoader.cpp.
References llvm::Module::begin(), Counter, E, llvm::Module::end(), first, getBlockCounts(), and hasAccurateBlockCounts().
bool llvm::ProfileInfoLoader::hasAccurateBlockCounts | ( | ) | const [inline] |
bool llvm::ProfileInfoLoader::hasAccurateEdgeCounts | ( | ) | const [inline] |
void ProfileInfoLoader::getBlockCounts | ( | std::vector< std::pair< BasicBlock *, unsigned > > & | Counts | ) |
Definition at line 176 of file ProfileInfoLoader.cpp.
References BB, llvm::Module::begin(), Counter, E, llvm::Module::end(), F, first, getEdgeCounts(), llvm::TerminatorInst::getNumSuccessors(), llvm::TerminatorInst::getSuccessor(), llvm::BasicBlock::getTerminator(), hasAccurateEdgeCounts(), and second.
Referenced by getFunctionCounts().
void ProfileInfoLoader::getEdgeCounts | ( | std::vector< std::pair< Edge, unsigned > > & | Counts | ) |
Definition at line 248 of file ProfileInfoLoader.cpp.
References BB, llvm::Module::begin(), Counter, E, llvm::Module::end(), F, llvm::TerminatorInst::getNumSuccessors(), and llvm::BasicBlock::getTerminator().
Referenced by getBlockCounts().
void ProfileInfoLoader::getBBTrace | ( | std::vector< BasicBlock * > & | Trace | ) |
Definition at line 270 of file ProfileInfoLoader.cpp.