LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | List of all members
llvm::FPPassManager Class Reference

#include <LegacyPassManagers.h>

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

Public Member Functions

 FPPassManager ()
 
bool runOnFunction (Function &F)
 
bool runOnModule (Module &M)
 
void cleanup ()
 cleanup - After running all passes, clean up pass manager cache. More...
 
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. More...
 
void dumpPassStructure (unsigned Offset)
 Print passes managed by this manager. More...
 
virtual const char * getPassName () const
 
FunctionPassgetContainedPass (unsigned N)
 
virtual PassManagerType getPassManagerType () const
 
- Public Member Functions inherited from llvm::ModulePass
PasscreatePrinterPass (raw_ostream &O, const std::string &Banner) const
 createPrinterPass - Get a module printer pass. More...
 
virtual void assignPassManager (PMStack &PMS, PassManagerType T)
 
virtual PassManagerType getPotentialPassManagerType () const
 Return what kind of Pass Manager can manage this pass. More...
 
 ModulePass (char &pid)
 
virtual ~ModulePass ()
 
- Public Member Functions inherited from llvm::Pass
 Pass (PassKind K, char &pid)
 
virtual ~Pass ()
 
PassKind getPassKind () const
 
AnalysisID getPassID () const
 getPassID - Return the PassID number that corresponds to this pass. More...
 
virtual void print (raw_ostream &O, const Module *M) const
 
void dump () const
 
virtual void preparePassManager (PMStack &)
 Check if available pass managers are suitable for this pass or not. More...
 
void setResolver (AnalysisResolver *AR)
 
AnalysisResolvergetResolver () const
 
virtual void releaseMemory ()
 
virtual void * getAdjustedAnalysisPointer (AnalysisID ID)
 
virtual ImmutablePassgetAsImmutablePass ()
 
virtual void verifyAnalysis () const
 
template<typename AnalysisType >
AnalysisType * getAnalysisIfAvailable () const
 
bool mustPreserveAnalysisID (char &AID) const
 
template<typename AnalysisType >
AnalysisType & getAnalysis () const
 
template<typename AnalysisType >
AnalysisType & getAnalysis (Function &F)
 
template<typename AnalysisType >
AnalysisType & getAnalysisID (AnalysisID PI) const
 
template<typename AnalysisType >
AnalysisType & getAnalysisID (AnalysisID PI, Function &F)
 
- Public Member Functions inherited from llvm::PMDataManager
 PMDataManager ()
 
virtual ~PMDataManager ()
 
void recordAvailableAnalysis (Pass *P)
 Augment AvailableAnalysis by adding analysis made available by pass P. More...
 
void verifyPreservedAnalysis (Pass *P)
 verifyPreservedAnalysis – Verify analysis presreved by pass P. More...
 
void removeNotPreservedAnalysis (Pass *P)
 Remove Analysis that is not preserved by the pass. More...
 
void removeDeadPasses (Pass *P, StringRef Msg, enum PassDebuggingString)
 Remove dead passes used by P. More...
 
void freePass (Pass *P, StringRef Msg, enum PassDebuggingString)
 Remove P. More...
 
void add (Pass *P, bool ProcessAnalysis=true)
 
virtual void addLowerLevelRequiredPass (Pass *P, Pass *RequiredPass)
 
virtual PassgetOnTheFlyPass (Pass *P, AnalysisID PI, Function &F)
 
void initializeAnalysisInfo ()
 Initialize available analysis information. More...
 
bool preserveHigherLevelAnalysis (Pass *P)
 
void collectRequiredAnalysis (SmallVectorImpl< Pass * > &RequiredPasses, SmallVectorImpl< AnalysisID > &ReqPassNotAvailable, Pass *P)
 
void initializeAnalysisImpl (Pass *P)
 
PassfindAnalysisPass (AnalysisID AID, bool Direction)
 
PMTopLevelManagergetTopLevelManager ()
 
void setTopLevelManager (PMTopLevelManager *T)
 
unsigned getDepth () const
 
void setDepth (unsigned newDepth)
 
void dumpLastUses (Pass *P, unsigned Offset) const
 
void dumpPassArguments () const
 
void dumpPassInfo (Pass *P, enum PassDebuggingString S1, enum PassDebuggingString S2, StringRef Msg)
 
void dumpRequiredSet (const Pass *P) const
 
void dumpPreservedSet (const Pass *P) const
 
unsigned getNumContainedPasses () const
 
DenseMap< AnalysisID, Pass * > * getAvailableAnalysis ()
 
void populateInheritedAnalysis (PMStack &PMS)
 

Static Public Attributes

static char ID = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::Pass
static const PassInfolookupPassInfo (const void *TI)
 
static const PassInfolookupPassInfo (StringRef Arg)
 
static PasscreatePass (AnalysisID ID)
 
- Protected Member Functions inherited from llvm::PMDataManager
bool isPassDebuggingExecutionsOrMore () const
 
- Protected Attributes inherited from llvm::PMDataManager
PMTopLevelManagerTPM
 
SmallVector< Pass *, 16 > PassVector
 
DenseMap< AnalysisID, Pass * > * InheritedAnalysis [PMT_Last]
 

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 LegacyPassManagers.h.

Constructor & Destructor Documentation

llvm::FPPassManager::FPPassManager ( )
inlineexplicit

Definition at line 411 of file LegacyPassManagers.h.

Member Function Documentation

void FPPassManager::cleanup ( )

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

Definition at line 1460 of file LegacyPassManager.cpp.

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

Referenced by llvm::legacy::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 1572 of file LegacyPassManager.cpp.

Referenced by llvm::legacy::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 1563 of file LegacyPassManager.cpp.

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

void FPPassManager::dumpPassStructure ( unsigned  Offset)
virtual

Print passes managed by this manager.

Reimplemented from llvm::Pass.

Definition at line 1503 of file LegacyPassManager.cpp.

References llvm::dbgs(), llvm::Pass::dumpPassStructure(), and llvm::raw_ostream::indent().

void llvm::FPPassManager::getAnalysisUsage ( AnalysisUsage Info) const
inlinevirtual

Pass Manager itself does not invalidate any analysis info.

Reimplemented from llvm::Pass.

Definition at line 444 of file LegacyPassManagers.h.

References llvm::AnalysisUsage::setPreservesAll().

virtual Pass* llvm::FPPassManager::getAsPass ( )
inlinevirtual

Implements llvm::PMDataManager.

Definition at line 441 of file LegacyPassManagers.h.

virtual PMDataManager* llvm::FPPassManager::getAsPMDataManager ( )
inlinevirtual

Reimplemented from llvm::Pass.

Definition at line 440 of file LegacyPassManagers.h.

FunctionPass* llvm::FPPassManager::getContainedPass ( unsigned  N)
inline
virtual PassManagerType llvm::FPPassManager::getPassManagerType ( ) const
inlinevirtual

Reimplemented from llvm::PMDataManager.

Definition at line 461 of file LegacyPassManagers.h.

References llvm::PMT_FunctionPassManager.

virtual const char* llvm::FPPassManager::getPassName ( ) const
inlinevirtual

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 LegacyPassManagers.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.

Execute all of the passes scheduled for execution by invoking runOnFunction method. Keep track of whether any of the passes modifies the function, and if so, return true.

Definition at line 1516 of file LegacyPassManager.cpp.

References llvm::EXECUTION_MSG, llvm::Value::getName(), llvm::getPassTimer(), llvm::GlobalValue::isDeclaration(), llvm::MODIFICATION_MSG, llvm::ON_FUNCTION_MSG, llvm::FunctionPass::runOnFunction(), and llvm::X.

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

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 1554 of file LegacyPassManager.cpp.

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

Member Data Documentation

char FPPassManager::ID = 0
static

Definition at line 410 of file LegacyPassManagers.h.


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