LLVM API Documentation
#include <LegacyPassManagers.h>
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 PMDataManager * | getAsPMDataManager () |
virtual Pass * | getAsPass () |
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 |
FunctionPass * | getContainedPass (unsigned N) |
virtual PassManagerType | getPassManagerType () const |
![]() | |
Pass * | createPrinterPass (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 () |
![]() | |
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) |
AnalysisResolver * | getResolver () const |
virtual void | releaseMemory () |
virtual void * | getAdjustedAnalysisPointer (AnalysisID ID) |
virtual ImmutablePass * | getAsImmutablePass () |
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) |
![]() | |
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 Pass * | getOnTheFlyPass (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) |
Pass * | findAnalysisPass (AnalysisID AID, bool Direction) |
PMTopLevelManager * | getTopLevelManager () |
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 const PassInfo * | lookupPassInfo (const void *TI) |
static const PassInfo * | lookupPassInfo (StringRef Arg) |
static Pass * | createPass (AnalysisID ID) |
![]() | |
bool | isPassDebuggingExecutionsOrMore () const |
![]() | |
PMTopLevelManager * | TPM |
SmallVector< Pass *, 16 > | PassVector |
DenseMap< AnalysisID, Pass * > * | InheritedAnalysis [PMT_Last] |
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.
|
inlineexplicit |
Definition at line 411 of file LegacyPassManagers.h.
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().
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().
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().
|
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().
|
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().
|
inlinevirtual |
Implements llvm::PMDataManager.
Definition at line 441 of file LegacyPassManagers.h.
|
inlinevirtual |
Reimplemented from llvm::Pass.
Definition at line 440 of file LegacyPassManagers.h.
|
inline |
Definition at line 455 of file LegacyPassManagers.h.
References N, and llvm::PMDataManager::PassVector.
Referenced by llvm::legacy::FunctionPassManagerImpl::releaseMemoryOnTheFly().
|
inlinevirtual |
Reimplemented from llvm::PMDataManager.
Definition at line 461 of file LegacyPassManagers.h.
References llvm::PMT_FunctionPassManager.
|
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.
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().
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.
|
static |
Definition at line 410 of file LegacyPassManagers.h.