LLVM API Documentation
PassManager manages ModulePassManagers. More...
#include <PassManager.h>


Public Member Functions | |
| PassManager () | |
| Create new pass manager. | |
| ~PassManager () | |
| void | add (Pass *P) |
| bool | run (Module &M) |
PassManager manages ModulePassManagers.
Definition at line 46 of file PassManager.h.
| PassManager::PassManager | ( | ) |
Create new pass manager.
Definition at line 1717 of file PassManager.cpp.
References llvm::PMDataManager::setTopLevelManager().
| PassManager::~PassManager | ( | ) |
Definition at line 1723 of file PassManager.cpp.
| void PassManager::add | ( | Pass * | P | ) | [virtual] |
add - 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 implies that all passes MUST be allocated with 'new'.
Implements llvm::PassManagerBase.
Definition at line 1731 of file PassManager.cpp.
References llvm::PassManagerImpl::add().
Referenced by llvm::MCJIT::emitObject(), llvm::lintModule(), LLVMTargetMachineEmit(), and llvm::verifyModule().
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.
Definition at line 1737 of file PassManager.cpp.
References llvm::PassManagerImpl::run().
Referenced by llvm::MCJIT::emitObject(), llvm::lintModule(), LLVMTargetMachineEmit(), and llvm::verifyModule().