LLVM API Documentation
#include <PassManagers.h>
Public Member Functions | |
| FPPassManager (int Depth) | |
| 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) |
| 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 |
| FunctionPass * | getContainedPass (unsigned N) |
| virtual PassManagerType | getPassManagerType () const |
Static Public Attributes | |
| static char | ID = 0 |
Definition at line 408 of file PassManagers.h.
| llvm::FPPassManager::FPPassManager | ( | int | Depth | ) | [inline, explicit] |
Definition at line 412 of file PassManagers.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 1351 of file PassManager.cpp.
References llvm::PMTopLevelManager::activeStack, llvm::PMDataManager::dumpPassInfo(), llvm::PMDataManager::dumpPreservedSet(), llvm::PMDataManager::dumpRequiredSet(), llvm::EXECUTION_MSG, getContainedPass(), llvm::Value::getName(), llvm::PMDataManager::getNumContainedPasses(), Index, llvm::PMDataManager::initializeAnalysisImpl(), llvm::Function::isDeclaration(), llvm::MODIFICATION_MSG, llvm::ON_FUNCTION_MSG, llvm::PMDataManager::populateInheritedAnalysis(), llvm::PMDataManager::recordAvailableAnalysis(), llvm::PMDataManager::removeDeadPasses(), llvm::PMDataManager::removeNotPreservedAnalysis(), llvm::FunctionPass::runOnFunction(), TheTimeInfo, llvm::PMDataManager::TPM, llvm::PMDataManager::verifyDomInfo(), llvm::PMDataManager::verifyPreservedAnalysis(), and llvm::X.
Referenced by llvm::FunctionPassManagerImpl::run(), and runOnModule().
runOnModule - Virtual method overriden by subclasses to process the module being operated on.
Implements llvm::ModulePass.
Definition at line 1391 of file PassManager.cpp.
References llvm::Module::begin(), doFinalization(), doInitialization(), E, llvm::Module::end(), and runOnFunction().
| void FPPassManager::cleanup | ( | ) |
cleanup - After running all passes, clean up pass manager cache.
Definition at line 1292 of file PassManager.cpp.
References llvm::AnalysisResolver::clearAnalysisImpls(), getContainedPass(), llvm::PMDataManager::getNumContainedPasses(), llvm::Pass::getResolver(), and Index.
Referenced by llvm::FunctionPassManagerImpl::run().
doInitialization - Run all of the initializers for the function passes.
Definition at line 1400 of file PassManager.cpp.
References llvm::FunctionPass::doInitialization(), getContainedPass(), llvm::PMDataManager::getNumContainedPasses(), and Index.
Referenced by llvm::FunctionPassManagerImpl::doInitialization(), and runOnModule().
doFinalization - Run all of the finalizers for the function passes.
Definition at line 1409 of file PassManager.cpp.
References llvm::FunctionPass::doFinalization(), getContainedPass(), llvm::PMDataManager::getNumContainedPasses(), and Index.
Referenced by llvm::FunctionPassManagerImpl::doFinalization(), and runOnModule().
| 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 432 of file PassManagers.h.
References llvm::AnalysisUsage::setPreservesAll().
| void FPPassManager::dumpPassStructure | ( | unsigned | Offset | ) | [virtual] |
Print passes managed by this manager.
Reimplemented from llvm::Pass.
Definition at line 1338 of file PassManager.cpp.
References llvm::PMDataManager::dumpLastUses(), llvm::Pass::dumpPassStructure(), llvm::errs(), getContainedPass(), llvm::PMDataManager::getNumContainedPasses(), and Index.
| 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.
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 439 of file PassManagers.h.
| FunctionPass* llvm::FPPassManager::getContainedPass | ( | unsigned | N | ) | [inline] |
Definition at line 443 of file PassManagers.h.
References llvm::PMDataManager::PassVector.
Referenced by cleanup(), doFinalization(), doInitialization(), dumpPassStructure(), llvm::FunctionPassManagerImpl::releaseMemoryOnTheFly(), and runOnFunction().
| virtual PassManagerType llvm::FPPassManager::getPassManagerType | ( | ) | const [inline, virtual] |
Reimplemented from llvm::PMDataManager.
Definition at line 449 of file PassManagers.h.
References llvm::PMT_FunctionPassManager.
char FPPassManager::ID = 0 [static] |
Definition at line 411 of file PassManagers.h.