LLVM API Documentation
#include <ProfileInfo.h>
Public Types | |
| typedef std::pair< const BasicBlock *, const BasicBlock * > | Edge |
| typedef std::map< Edge, double > | EdgeCounts |
| typedef std::map< const BasicBlock *, double > | BlockCounts |
Public Member Functions | |
| virtual | ~ProfileInfo () |
| double | getExecutionCount (const Function *F) |
| double | getExecutionCount (const BasicBlock *BB) |
| double | getEdgeWeight (Edge e) const |
Static Public Member Functions | |
| static const Function * | getFunction (Edge e) |
| static Edge | getEdge (const BasicBlock *Src, const BasicBlock *Dest) |
Static Public Attributes | |
| static char | ID = 0 |
| static const int | MissingValue = -1 |
Protected Attributes | |
| std::map< const Function *, EdgeCounts > | EdgeInformation |
| std::map< const Function *, BlockCounts > | BlockInformation |
| std::map< const Function *, double > | FunctionInformation |
Definition at line 35 of file ProfileInfo.h.
| typedef std::pair<const BasicBlock*, const BasicBlock*> llvm::ProfileInfo::Edge |
Definition at line 38 of file ProfileInfo.h.
| typedef std::map<Edge, double> llvm::ProfileInfo::EdgeCounts |
Definition at line 39 of file ProfileInfo.h.
| typedef std::map<const BasicBlock*, double> llvm::ProfileInfo::BlockCounts |
Definition at line 40 of file ProfileInfo.h.
| ProfileInfo::~ProfileInfo | ( | ) | [virtual] |
Definition at line 27 of file ProfileInfo.cpp.
| static Edge llvm::ProfileInfo::getEdge | ( | const BasicBlock * | Src, | |
| const BasicBlock * | Dest | |||
| ) | [inline, static] |
| double ProfileInfo::getExecutionCount | ( | const Function * | F | ) |
Profile Information Queries
Definition at line 67 of file ProfileInfo.cpp.
References FunctionInformation, llvm::Function::getEntryBlock(), llvm::Function::isDeclaration(), and MissingValue.
| double ProfileInfo::getExecutionCount | ( | const BasicBlock * | BB | ) |
Definition at line 29 of file ProfileInfo.cpp.
References BlockInformation, getEdge(), getEdgeWeight(), llvm::Function::getEntryBlock(), llvm::BasicBlock::getParent(), MissingValue, PI, llvm::pred_begin(), and llvm::pred_end().
| double llvm::ProfileInfo::getEdgeWeight | ( | Edge | e | ) | const [inline] |
Definition at line 80 of file ProfileInfo.h.
References EdgeInformation, getFunction(), and MissingValue.
Referenced by getExecutionCount().
std::map<const Function*, EdgeCounts> llvm::ProfileInfo::EdgeInformation [protected] |
std::map<const Function*, BlockCounts> llvm::ProfileInfo::BlockInformation [protected] |
std::map<const Function*, double> llvm::ProfileInfo::FunctionInformation [protected] |
char ProfileInfo::ID = 0 [static] |
Definition at line 55 of file ProfileInfo.h.
const int llvm::ProfileInfo::MissingValue = -1 [static] |
Definition at line 60 of file ProfileInfo.h.
Referenced by getEdgeWeight(), and getExecutionCount().