LLVM
8.0.1
|
FunctionPassManager manages FunctionPasses and BasicBlockPassManagers. More...
#include "llvm/IR/LegacyPassManager.h"
Public Member Functions | |
FunctionPassManager (Module *M) | |
FunctionPassManager ctor - This initializes the pass manager. More... | |
~FunctionPassManager () override | |
void | add (Pass *P) override |
Add a pass to the queue of passes to run. More... | |
bool | run (Function &F) |
run - Execute all of the passes scheduled for execution. More... | |
bool | doInitialization () |
doInitialization - Run all of the initializers for the function passes. More... | |
bool | doFinalization () |
doFinalization - Run all of the finalizers for the function passes. More... | |
Public Member Functions inherited from llvm::legacy::PassManagerBase | |
virtual | ~PassManagerBase () |
FunctionPassManager manages FunctionPasses and BasicBlockPassManagers.
Definition at line 68 of file LegacyPassManager.h.
|
explicit |
FunctionPassManager ctor - This initializes the pass manager.
Create new Function pass manager.
It needs, but does not take ownership of, the specified Module.
Definition at line 1485 of file LegacyPassManager.cpp.
References llvm::Pass::setResolver(), and llvm::PMDataManager::setTopLevelManager().
|
override |
Definition at line 1494 of file LegacyPassManager.cpp.
|
overridevirtual |
Add a pass to the queue of passes to run.
This passes ownership of the Pass to the PassManager. When the PassManager is destroyed, the pass will be destroyed as well, so there is no need to delete the pass. This may even destroy the pass right away if it is found to be redundant. This implies that all passes MUST be allocated with 'new'.
Implements llvm::legacy::PassManagerBase.
Definition at line 1498 of file LegacyPassManager.cpp.
References llvm::legacy::FunctionPassManagerImpl::add().
Referenced by invokeFunctionPass(), llvm::PassManagerBuilder::populateFunctionPassManager(), postSplitCleanup(), and simplifyCFG().
bool FunctionPassManager::doFinalization | ( | ) |
doFinalization - Run all of the finalizers for the function passes.
Definition at line 1522 of file LegacyPassManager.cpp.
References llvm::legacy::FunctionPassManagerImpl::doFinalization().
bool FunctionPassManager::doInitialization | ( | ) |
doInitialization - Run all of the initializers for the function passes.
Definition at line 1516 of file LegacyPassManager.cpp.
References llvm::legacy::FunctionPassManagerImpl::doInitialization().
run - Execute all of the passes scheduled for execution.
Keep track of whether any of the passes modifies the function, and if so, return true.
Definition at line 1506 of file LegacyPassManager.cpp.
References llvm::handleAllErrors(), llvm::GlobalValue::materialize(), llvm::report_fatal_error(), and llvm::legacy::FunctionPassManagerImpl::run().