LLVM API Documentation
#include <ProfileInfo.h>
Public Member Functions | |
| virtual | ~ProfileInfo () |
| unsigned | getExecutionCount (BasicBlock *BB) const |
| unsigned | getEdgeWeight (BasicBlock *Src, BasicBlock *Dest) const |
Static Public Attributes | |
| static char | ID = 0 |
Protected Attributes | |
| std::map< std::pair < BasicBlock *, BasicBlock * > , unsigned > | EdgeCounts |
Definition at line 33 of file ProfileInfo.h.
| ProfileInfo::~ProfileInfo | ( | ) | [virtual] |
Definition at line 27 of file ProfileInfo.cpp.
| unsigned ProfileInfo::getExecutionCount | ( | BasicBlock * | BB | ) | const |
Profile Information Queries
Definition at line 29 of file ProfileInfo.cpp.
References getEdgeWeight(), llvm::Function::getEntryBlock(), llvm::BasicBlock::getParent(), PI, llvm::pred_begin(), and llvm::pred_end().
| unsigned llvm::ProfileInfo::getEdgeWeight | ( | BasicBlock * | Src, | |
| BasicBlock * | Dest | |||
| ) | const [inline] |
Definition at line 49 of file ProfileInfo.h.
References EdgeCounts.
Referenced by getExecutionCount().
std::map<std::pair<BasicBlock*, BasicBlock*>, unsigned> llvm::ProfileInfo::EdgeCounts [protected] |
char ProfileInfo::ID = 0 [static] |
Definition at line 41 of file ProfileInfo.h.