LLVM API Documentation
#include <PassManager.h>
Collaboration diagram for llvm::PassManager:
Public Member Functions | |
PassManager () | |
~PassManager () | |
void | add (Pass *P) |
bool | run (Module &M) |
Definition at line 28 of file PassManager.h.
|
|
|
|
|
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'. Definition at line 81 of file Pass.cpp. References llvm::PassManagerT< UnitType >::add(). Referenced by llvm::X86TargetMachine::addPassesToEmitAssembly(), llvm::CTargetMachine::addPassesToEmitAssembly(), llvm::SkeletonTargetMachine::addPassesToEmitAssembly(), llvm::PowerPCTargetMachine::addPassesToEmitAssembly(), 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 86 of file Pass.cpp. References llvm::PassManagerTraits< Module >::runOnModule(). Referenced by llvm::verifyModule(). |