LLVM API Documentation

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 27 of file ProfileInfo.cpp.


Member Function Documentation

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().


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: