LLVM API Documentation

llvm::ProfileInfoLoader Class Reference

#include <ProfileInfoLoader.h>

Collaboration diagram for llvm::ProfileInfoLoader:
[legend]

List of all members.

Public Types

typedef std::pair< BasicBlock
*, unsigned > 
Edge

Public Member Functions

 ProfileInfoLoader (const char *ToolName, const std::string &Filename, Module &M)
unsigned getNumExecutions () const
const std::string & getExecution (unsigned i) const
void getFunctionCounts (std::vector< std::pair< Function *, unsigned > > &Counts)
bool hasAccurateBlockCounts () const
bool hasAccurateEdgeCounts () const
void getBlockCounts (std::vector< std::pair< BasicBlock *, unsigned > > &Counts)
void getEdgeCounts (std::vector< std::pair< Edge, unsigned > > &Counts)
void getBBTrace (std::vector< BasicBlock * > &Trace)


Detailed Description

Definition at line 29 of file ProfileInfoLoader.h.


Member Typedef Documentation

Definition at line 78 of file ProfileInfoLoader.h.


Constructor & Destructor Documentation

ProfileInfoLoader::ProfileInfoLoader ( const char *  ToolName,
const std::string &  Filename,
Module &  M 
)


Member Function Documentation

unsigned llvm::ProfileInfoLoader::getNumExecutions (  )  const [inline]

Definition at line 42 of file ProfileInfoLoader.h.

const std::string& llvm::ProfileInfoLoader::getExecution ( unsigned  i  )  const [inline]

Definition at line 43 of file ProfileInfoLoader.h.

void ProfileInfoLoader::getFunctionCounts ( std::vector< std::pair< Function *, unsigned > > &  Counts  ) 

bool llvm::ProfileInfoLoader::hasAccurateBlockCounts (  )  const [inline]

Definition at line 54 of file ProfileInfoLoader.h.

Referenced by getFunctionCounts().

bool llvm::ProfileInfoLoader::hasAccurateEdgeCounts (  )  const [inline]

Definition at line 61 of file ProfileInfoLoader.h.

Referenced by getBlockCounts().

void ProfileInfoLoader::getBlockCounts ( std::vector< std::pair< BasicBlock *, unsigned > > &  Counts  ) 

void ProfileInfoLoader::getEdgeCounts ( std::vector< std::pair< Edge, unsigned > > &  Counts  ) 

Definition at line 249 of file ProfileInfoLoader.cpp.

References BB, llvm::Module::begin(), llvm::cerr(), Counter, E, llvm::Module::end(), and F.

Referenced by getBlockCounts().

void ProfileInfoLoader::getBBTrace ( std::vector< BasicBlock * > &  Trace  ) 

Definition at line 271 of file ProfileInfoLoader.cpp.

References llvm::cerr().


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