LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::ProfileInfo Class Reference

#include <ProfileInfo.h>

Collaboration diagram for llvm::ProfileInfo:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

ProfileInfo Class - This class holds and maintains edge profiling information for some unit of code.

Definition at line 33 of file ProfileInfo.h.


Constructor & Destructor Documentation

ProfileInfo::~ProfileInfo  )  [virtual]
 

Definition at line 26 of file ProfileInfo.cpp.


Member Function Documentation

unsigned llvm::ProfileInfo::getEdgeWeight BasicBlock Src,
BasicBlock Dest
const [inline]
 

Definition at line 48 of file ProfileInfo.h.

References EdgeCounts, and I.

Referenced by getExecutionCount().

unsigned ProfileInfo::getExecutionCount BasicBlock BB  )  const
 

Profile Information Queries

Definition at line 28 of file ProfileInfo.cpp.

References llvm::Function::front(), getEdgeWeight(), llvm::BasicBlock::getParent(), llvm::pred_begin(), and llvm::pred_end().


Member Data Documentation

std::map<std::pair<BasicBlock*, BasicBlock*>, unsigned> llvm::ProfileInfo::EdgeCounts [protected]
 

Definition at line 39 of file ProfileInfo.h.

Referenced by getEdgeWeight().


The documentation for this class was generated from the following files: