LLVM API Documentation
#include <PassManagers.h>
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 |
| FunctionPass * | getContainedPass (unsigned N) |
| virtual PassManagerType | getPassManagerType () const |
Static Public Attributes | |
| static char | ID = 0 |
Definition at line 382 of file PassManagers.h.
| llvm::FPPassManager::FPPassManager | ( | int | Depth | ) | [inline, explicit] |
Definition at line 386 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.
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 1304 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(), 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(), and llvm::PMDataManager::verifyPreservedAnalysis().
Referenced by llvm::FunctionPassManagerImpl::run(), and 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 1341 of file PassManager.cpp.
References llvm::Module::begin(), doFinalization(), doInitialization(), E, llvm::Module::end(), and runOnFunction().
| bool FPPassManager::doInitialization | ( | Module & | M | ) | [inline] |
doInitialization - Run all of the initializers for the function passes.
Definition at line 1351 of file PassManager.cpp.
References llvm::FunctionPass::doInitialization(), getContainedPass(), llvm::PMDataManager::getNumContainedPasses(), and Index.
Referenced by llvm::FunctionPassManagerImpl::doInitialization(), and runOnModule().
| bool FPPassManager::doFinalization | ( | Module & | M | ) | [inline] |
doFinalization - Run all of the finalizers for the function passes.
Definition at line 1362 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 403 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 1291 of file PassManager.cpp.
References llvm::cerr(), llvm::PMDataManager::dumpLastUses(), llvm::Pass::dumpPassStructure(), 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 410 of file PassManagers.h.
| FunctionPass* llvm::FPPassManager::getContainedPass | ( | unsigned | N | ) | [inline] |
Definition at line 414 of file PassManagers.h.
References llvm::PMDataManager::PassVector.
Referenced by doFinalization(), doInitialization(), dumpPassStructure(), and runOnFunction().
| virtual PassManagerType llvm::FPPassManager::getPassManagerType | ( | ) | const [inline, virtual] |
Reimplemented from llvm::PMDataManager.
Definition at line 420 of file PassManagers.h.
References llvm::PMT_FunctionPassManager.
char FPPassManager::ID = 0 [static] |
Definition at line 385 of file PassManagers.h.