LLVM API Documentation

Public Member Functions | Static Public Attributes
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 ()
bool runOnFunction (Function &F)
bool runOnModule (Module &M)
void cleanup ()
 cleanup - After running all passes, clean up pass manager cache.
bool doInitialization (Module &M)
bool doFinalization (Module &M)
virtual PMDataManagergetAsPMDataManager ()
virtual PassgetAsPass ()
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

static 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 408 of file PassManagers.h.


Constructor & Destructor Documentation

llvm::FPPassManager::FPPassManager ( ) [inline, explicit]

Definition at line 411 of file PassManagers.h.


Member Function Documentation

void FPPassManager::cleanup ( )

cleanup - After running all passes, clean up pass manager cache.

Definition at line 1452 of file PassManager.cpp.

References llvm::AnalysisResolver::clearAnalysisImpls(), getContainedPass(), llvm::PMDataManager::getNumContainedPasses(), and llvm::Pass::getResolver().

Referenced by llvm::FunctionPassManagerImpl::run().

bool FPPassManager::doFinalization ( Module M) [virtual]

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

Reimplemented from llvm::Pass.

Definition at line 1564 of file PassManager.cpp.

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

Referenced by llvm::FunctionPassManagerImpl::doFinalization().

bool FPPassManager::doInitialization ( Module M) [virtual]

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

Reimplemented from llvm::Pass.

Definition at line 1555 of file PassManager.cpp.

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

Referenced by llvm::FunctionPassManagerImpl::doInitialization().

void FPPassManager::dumpPassStructure ( unsigned  Offset) [virtual]
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 444 of file PassManagers.h.

References llvm::AnalysisUsage::setPreservesAll().

virtual Pass* llvm::FPPassManager::getAsPass ( ) [inline, virtual]

Implements llvm::PMDataManager.

Definition at line 441 of file PassManagers.h.

virtual PMDataManager* llvm::FPPassManager::getAsPMDataManager ( ) [inline, virtual]

Reimplemented from llvm::Pass.

Definition at line 440 of file PassManagers.h.

FunctionPass* llvm::FPPassManager::getContainedPass ( unsigned  N) [inline]
virtual PassManagerType llvm::FPPassManager::getPassManagerType ( ) const [inline, virtual]

Reimplemented from llvm::PMDataManager.

Definition at line 461 of file PassManagers.h.

References llvm::PMT_FunctionPassManager.

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 451 of file PassManagers.h.

bool FPPassManager::runOnFunction ( Function F)
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 1546 of file PassManager.cpp.

References llvm::Module::begin(), llvm::Module::end(), llvm::ARM_PROC::I, and runOnFunction().


Member Data Documentation

char FPPassManager::ID = 0 [static]

Definition at line 410 of file PassManagers.h.


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