LLVM API Documentation
#include <LegacyPassManagers.h>
Public Member Functions | |
FPPassManager () | |
bool | runOnFunction (Function &F) |
bool | runOnModule (Module &M) override |
void | cleanup () |
cleanup - After running all passes, clean up pass manager cache. | |
bool | doInitialization (Module &M) override |
bool | doFinalization (Module &M) override |
PMDataManager * | getAsPMDataManager () override |
Pass * | getAsPass () override |
void | getAnalysisUsage (AnalysisUsage &Info) const override |
Pass Manager itself does not invalidate any analysis info. | |
void | dumpPassStructure (unsigned Offset) override |
Print passes managed by this manager. | |
const char * | getPassName () const override |
FunctionPass * | getContainedPass (unsigned N) |
PassManagerType | getPassManagerType () const override |
Static Public Attributes | |
static char | ID = 0 |
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.
llvm::FPPassManager::FPPassManager | ( | ) | [inline, explicit] |
Definition at line 411 of file LegacyPassManagers.h.
void FPPassManager::cleanup | ( | ) |
cleanup - After running all passes, clean up pass manager cache.
Definition at line 1464 of file LegacyPassManager.cpp.
References llvm::AnalysisResolver::clearAnalysisImpls(), and llvm::Pass::getResolver().
Referenced by llvm::legacy::FunctionPassManagerImpl::run().
bool FPPassManager::doFinalization | ( | Module & | M | ) | [override, virtual] |
doFinalization - Run all of the finalizers for the function passes.
Reimplemented from llvm::Pass.
Definition at line 1578 of file LegacyPassManager.cpp.
Referenced by llvm::legacy::FunctionPassManagerImpl::doFinalization().
bool FPPassManager::doInitialization | ( | Module & | M | ) | [override, virtual] |
doInitialization - Run all of the initializers for the function passes.
Reimplemented from llvm::Pass.
Definition at line 1569 of file LegacyPassManager.cpp.
Referenced by llvm::legacy::FunctionPassManagerImpl::doInitialization().
void FPPassManager::dumpPassStructure | ( | unsigned | Offset | ) | [override, virtual] |
Print passes managed by this manager.
Reimplemented from llvm::Pass.
Definition at line 1509 of file LegacyPassManager.cpp.
References llvm::dbgs(), llvm::Pass::dumpPassStructure(), and llvm::raw_ostream::indent().
void llvm::FPPassManager::getAnalysisUsage | ( | AnalysisUsage & | Info | ) | const [inline, override, virtual] |
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().
Pass* llvm::FPPassManager::getAsPass | ( | ) | [inline, override, virtual] |
Implements llvm::PMDataManager.
Definition at line 441 of file LegacyPassManagers.h.
PMDataManager* llvm::FPPassManager::getAsPMDataManager | ( | ) | [inline, override, virtual] |
Reimplemented from llvm::Pass.
Definition at line 440 of file LegacyPassManagers.h.
FunctionPass* llvm::FPPassManager::getContainedPass | ( | unsigned | N | ) | [inline] |
Definition at line 455 of file LegacyPassManagers.h.
References llvm::PMDataManager::PassVector, and llvm::SmallVectorTemplateCommon< T, typename >::size().
Referenced by llvm::legacy::FunctionPassManagerImpl::releaseMemoryOnTheFly().
PassManagerType llvm::FPPassManager::getPassManagerType | ( | ) | const [inline, override, virtual] |
Reimplemented from llvm::PMDataManager.
Definition at line 461 of file LegacyPassManagers.h.
References llvm::PMT_FunctionPassManager.
const char* llvm::FPPassManager::getPassName | ( | ) | const [inline, override, 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 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 1522 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 | ) | [override, virtual] |
runOnModule - Virtual method overriden by subclasses to process the module being operated on.
Implements llvm::ModulePass.
Definition at line 1560 of file LegacyPassManager.cpp.
References llvm::Module::begin(), llvm::Module::end(), and I.
char FPPassManager::ID = 0 [static] |
Definition at line 410 of file LegacyPassManagers.h.