LLVM API Documentation

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

llvm::FPPassManager Class Reference

#include <PassManagers.h>

Inheritance diagram for llvm::FPPassManager:

Inheritance graph
[legend]
Collaboration diagram for llvm::FPPassManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FPPassManager (int Depth)
bool runOnFunction (Function &F)
bool runOnModule (Module &M)
bool doInitialization (Module &M)
bool doFinalization (Module &M)
void getAnalysisUsage (AnalysisUsage &Info) const
 Pass Manager itself does not invalidate any analysis info.
void dumpPassStructure (unsigned Offset)
 Print passes managed by this manager.
virtual const char * getPassName () const
FunctionPassgetContainedPass (unsigned N)
virtual PassManagerType getPassManagerType () const

Static Public Attributes

char ID = 0

Detailed Description

FPPassManager manages BBPassManagers and FunctionPasses. It batches all function passes and basic block pass managers together and sequence them to process one function at a time before processing next function.

Definition at line 385 of file PassManagers.h.


Constructor & Destructor Documentation

llvm::FPPassManager::FPPassManager int  Depth  )  [inline, explicit]
 

Definition at line 389 of file PassManagers.h.


Member Function Documentation

bool FPPassManager::doFinalization Module M  )  [inline]
 

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

Definition at line 1350 of file PassManager.cpp.

References llvm::FunctionPass::doFinalization(), getContainedPass(), and llvm::PMDataManager::getNumContainedPasses().

Referenced by llvm::FunctionPassManagerImpl::doFinalization(), and runOnModule().

bool FPPassManager::doInitialization Module M  )  [inline]
 

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

Definition at line 1339 of file PassManager.cpp.

References llvm::FunctionPass::doInitialization(), getContainedPass(), and llvm::PMDataManager::getNumContainedPasses().

Referenced by llvm::FunctionPassManagerImpl::doInitialization(), and runOnModule().

void FPPassManager::dumpPassStructure unsigned  Offset  )  [virtual]
 

Print passes managed by this manager.

Reimplemented from llvm::Pass.

Definition at line 1279 of file PassManager.cpp.

References llvm::PMDataManager::dumpLastUses(), llvm::Pass::dumpPassStructure(), getContainedPass(), and llvm::PMDataManager::getNumContainedPasses().

void llvm::FPPassManager::getAnalysisUsage AnalysisUsage Info  )  const [inline, virtual]
 

Pass Manager itself does not invalidate any analysis info.

Reimplemented from llvm::Pass.

Definition at line 406 of file PassManagers.h.

References llvm::AnalysisUsage::setPreservesAll().

FunctionPass* llvm::FPPassManager::getContainedPass unsigned  N  )  [inline]
 

Definition at line 417 of file PassManagers.h.

Referenced by doFinalization(), doInitialization(), dumpPassStructure(), and runOnFunction().

virtual PassManagerType llvm::FPPassManager::getPassManagerType  )  const [inline, virtual]
 

Reimplemented from llvm::PMDataManager.

Definition at line 423 of file PassManagers.h.

References llvm::PassManagerType.

virtual const char* llvm::FPPassManager::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 413 of file PassManagers.h.

bool FPPassManager::runOnFunction Function F  ) 
 

run - Execute all of the passes scheduled for execution. Keep track of whether any of the passes modifies the module, and if so, return true.

Definition at line 1292 of file PassManager.cpp.

References llvm::PMTopLevelManager::activeStack, llvm::PMDataManager::dumpPassInfo(), llvm::PMDataManager::dumpPreservedSet(), llvm::PMDataManager::dumpRequiredSet(), llvm::EXECUTION_MSG, getContainedPass(), llvm::Value::getNameStart(), llvm::PMDataManager::getNumContainedPasses(), llvm::PMDataManager::initializeAnalysisImpl(), llvm::Function::isDeclaration(), llvm::MODIFICATION_MSG, llvm::ON_FUNCTION_MSG, TimingInfo::passEnded(), TimingInfo::passStarted(), llvm::PMDataManager::populateInheritedAnalysis(), llvm::PMDataManager::recordAvailableAnalysis(), llvm::PMDataManager::removeDeadPasses(), llvm::PMDataManager::removeNotPreservedAnalysis(), llvm::FunctionPass::runOnFunction(), TheTimeInfo, llvm::PMDataManager::verifyDomInfo(), and llvm::PMDataManager::verifyPreservedAnalysis().

Referenced by llvm::FunctionPassManagerImpl::run(), runOnModule(), and CGPassManager::runOnModule().

bool FPPassManager::runOnModule Module M  )  [virtual]
 

runOnModule - Virtual method overriden by subclasses to process the module being operated on.

Implements llvm::ModulePass.

Definition at line 1329 of file PassManager.cpp.

References Module::begin(), doFinalization(), doInitialization(), Module::end(), and runOnFunction().


Member Data Documentation

char FPPassManager::ID = 0 [static]
 

Definition at line 1277 of file PassManager.cpp.


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


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