LLVM API Documentation

llvm::ProfileInfo Class Reference

#include <ProfileInfo.h>

Collaboration diagram for llvm::ProfileInfo:
[legend]

List of all members.

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


Detailed Description

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

Definition at line 35 of file ProfileInfo.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

ProfileInfo::~ProfileInfo (  )  [virtual]

Definition at line 27 of file ProfileInfo.cpp.


Member Function Documentation

static const Function* llvm::ProfileInfo::getFunction ( Edge  e  )  [inline, static]

Definition at line 63 of file ProfileInfo.h.

Referenced by getEdgeWeight().

static Edge llvm::ProfileInfo::getEdge ( const BasicBlock *  Src,
const BasicBlock *  Dest 
) [inline, static]

Definition at line 69 of file ProfileInfo.h.

Referenced by getExecutionCount().

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  ) 

double llvm::ProfileInfo::getEdgeWeight ( Edge  e  )  const [inline]

Definition at line 80 of file ProfileInfo.h.

References EdgeInformation, getFunction(), and MissingValue.

Referenced by getExecutionCount().


Member Data Documentation

Definition at line 47 of file ProfileInfo.h.

Referenced by getEdgeWeight().

Definition at line 50 of file ProfileInfo.h.

Referenced by getExecutionCount().

std::map<const Function*, double> llvm::ProfileInfo::FunctionInformation [protected]

Definition at line 53 of file ProfileInfo.h.

Referenced by getExecutionCount().

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


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