LLVM API Documentation
|Create new pass manager. |
|void||add (Pass *P)|
|bool||run (Module &M)|
|void PassManager::add||(||Pass *||P||)||
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'.
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.