LLVM API Documentation
#include <ProfileInfo.h>
Collaboration diagram for llvm::ProfileInfo:
Public Member Functions | |
virtual | ~ProfileInfo () |
unsigned | getExecutionCount (BasicBlock *BB) const |
unsigned | getEdgeWeight (BasicBlock *Src, BasicBlock *Dest) const |
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 BB, llvm::Function::front(), getEdgeWeight(), llvm::BasicBlock::getParent(), PI, llvm::pred_begin(), and llvm::pred_end().
unsigned llvm::ProfileInfo::getEdgeWeight | ( | BasicBlock * | Src, | |
BasicBlock * | Dest | |||
) | const [inline] |
Definition at line 48 of file ProfileInfo.h.
References Dest, EdgeCounts, and Src.
Referenced by getExecutionCount().
std::map<std::pair<BasicBlock*, BasicBlock*>, unsigned> llvm::ProfileInfo::EdgeCounts [protected] |