LLVM API Documentation

llvm::FunctionPassManagerImpl Class Reference

FunctionPassManagerImpl manages FPPassManagers. More...

Inheritance diagram for llvm::FunctionPassManagerImpl:
[legend]
Collaboration diagram for llvm::FunctionPassManagerImpl:
[legend]

List of all members.

Public Member Functions

 FunctionPassManagerImpl (int Depth)
void add (Pass *P)
void releaseMemoryOnTheFly ()
bool run (Function &F)
bool doInitialization (Module &M)
bool doFinalization (Module &M)
void getAnalysisUsage (AnalysisUsage &Info) const
 Pass Manager itself does not invalidate any analysis info.
void addTopLevelPass (Pass *P)
FPPassManager * getContainedManager (unsigned N)

Static Public Attributes

static char ID = 0


Detailed Description

FunctionPassManagerImpl manages FPPassManagers.

Definition at line 166 of file PassManager.cpp.


Constructor & Destructor Documentation

llvm::FunctionPassManagerImpl::FunctionPassManagerImpl ( int  Depth  )  [inline, explicit]

Definition at line 173 of file PassManager.cpp.


Member Function Documentation

void llvm::FunctionPassManagerImpl::add ( Pass *  P  )  [inline]

add - Add a pass to the queue of passes to run. This passes ownership of the Pass to the PassManager. When the PassManager is destroyed, the pass will be destroyed as well, so there is no need to delete the pass. This implies that all passes MUST be allocated with 'new'.

Definition at line 181 of file PassManager.cpp.

Referenced by llvm::FunctionPassManager::add(), and llvm::MPPassManager::addLowerLevelRequiredPass().

void FunctionPassManagerImpl::releaseMemoryOnTheFly (  ) 

bool FunctionPassManagerImpl::run ( Function &  F  ) 

bool FunctionPassManagerImpl::doInitialization ( Module &  M  ) 

doInitialization - Run all of the initializers for the function passes.

Definition at line 1273 of file PassManager.cpp.

References llvm::FPPassManager::doInitialization(), getContainedManager(), llvm::PMTopLevelManager::getNumContainedManagers(), and Index.

Referenced by llvm::FunctionPassManager::doInitialization(), and llvm::MPPassManager::runOnModule().

bool FunctionPassManagerImpl::doFinalization ( Module &  M  ) 

doFinalization - Run all of the finalizers for the function passes.

Definition at line 1282 of file PassManager.cpp.

References llvm::FPPassManager::doFinalization(), getContainedManager(), llvm::PMTopLevelManager::getNumContainedManagers(), and Index.

Referenced by llvm::FunctionPassManager::doFinalization(), and llvm::MPPassManager::runOnModule().

void llvm::FunctionPassManagerImpl::getAnalysisUsage ( AnalysisUsage &  Info  )  const [inline, virtual]

Pass Manager itself does not invalidate any analysis info.

Reimplemented from llvm::Pass.

Definition at line 202 of file PassManager.cpp.

References llvm::AnalysisUsage::setPreservesAll().

void llvm::FunctionPassManagerImpl::addTopLevelPass ( Pass *  P  )  [inline, virtual]

This is implemented by top level pass manager and used by schedulePass() to add analysis info passes that are not available.

Implements llvm::PMTopLevelManager.

Definition at line 206 of file PassManager.cpp.

References llvm::Pass::assignPassManager(), and llvm::Pass::setResolver().

FPPassManager* llvm::FunctionPassManagerImpl::getContainedManager ( unsigned  N  )  [inline]

Definition at line 223 of file PassManager.cpp.

Referenced by doFinalization(), doInitialization(), releaseMemoryOnTheFly(), and run().


Member Data Documentation

Definition at line 172 of file PassManager.cpp.


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