LLVM API Documentation

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

LoaderPass Class Reference

Inheritance diagram for LoaderPass:

Inheritance graph
[legend]
Collaboration diagram for LoaderPass:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LoaderPass (const std::string &filename="")
virtual void getAnalysisUsage (AnalysisUsage &AU) const
virtual const char * getPassName () const
virtual bool runOnModule (Module &M)
 run - Load the profile information from the specified file.

Static Public Attributes

char ID = 0

Constructor & Destructor Documentation

LoaderPass::LoaderPass const std::string &  filename = ""  )  [inline, explicit]
 

Definition at line 36 of file ProfileInfoLoaderPass.cpp.


Member Function Documentation

virtual void LoaderPass::getAnalysisUsage AnalysisUsage AU  )  const [inline, virtual]
 

getAnalysisUsage - This function should be overriden by passes that need analysis information to do their job. If a pass specifies that it uses a particular analysis result to this function, it can then use the getAnalysis<AnalysisType>() function, below.

Reimplemented from llvm::Pass.

Definition at line 41 of file ProfileInfoLoaderPass.cpp.

References llvm::AnalysisUsage::setPreservesAll().

virtual const char* LoaderPass::getPassName  )  const [inline, virtual]
 

getPassName - Return a nice clean name for a pass. This usually implemented in terms of the name that is registered by one of the Registration templates, but can be overloaded directly.

Reimplemented from llvm::Pass.

Definition at line 45 of file ProfileInfoLoaderPass.cpp.

bool LoaderPass::runOnModule Module M  )  [virtual]
 

run - Load the profile information from the specified file.

Implements llvm::ModulePass.

Definition at line 69 of file ProfileInfoLoaderPass.cpp.

References llvm::ProfileInfoLoader::getEdgeCounts(), llvm::TerminatorInst::getNumSuccessors(), llvm::TerminatorInst::getSuccessor(), and llvm::BasicBlock::getTerminator().


Member Data Documentation

char LoaderPass::ID = 0 [static]
 

Reimplemented from llvm::ProfileInfo.

Definition at line 54 of file ProfileInfoLoaderPass.cpp.


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


This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.