LLVM API Documentation
Public Member Functions | |
| PassManagerImpl (int Depth) | |
| void | add (Pass *P) |
| bool | run (Module &M) |
| void | getAnalysisUsage (AnalysisUsage &Info) const |
| Pass Manager itself does not invalidate any analysis info. | |
| void | addTopLevelPass (Pass *P) |
| MPPassManager * | getContainedManager (unsigned N) |
Static Public Attributes | |
| static char | ID = 0 |
Definition at line 311 of file PassManager.cpp.
| llvm::PassManagerImpl::PassManagerImpl | ( | int | Depth | ) | [inline, explicit] |
Definition at line 317 of file PassManager.cpp.
| void llvm::PassManagerImpl::add | ( | Pass * | P | ) | [inline] |
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 324 of file PassManager.cpp.
Referenced by llvm::PassManager::add().
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.
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 1520 of file PassManager.cpp.
References llvm::PMTopLevelManager::dumpArguments(), llvm::PMTopLevelManager::dumpPasses(), getContainedManager(), llvm::PMTopLevelManager::getNumContainedManagers(), Index, llvm::PMTopLevelManager::initializeAllAnalysisInfo(), and llvm::MPPassManager::runOnModule().
Referenced by llvm::PassManager::run().
| void llvm::PassManagerImpl::getAnalysisUsage | ( | AnalysisUsage & | Info | ) | const [inline, virtual] |
Pass Manager itself does not invalidate any analysis info.
Reimplemented from llvm::Pass.
Definition at line 333 of file PassManager.cpp.
References llvm::AnalysisUsage::setPreservesAll().
| void llvm::PassManagerImpl::addTopLevelPass | ( | Pass * | P | ) | [inline, virtual] |
This is implemented by top level pass manager and used by schedulePass() to add analysis info passes that are not available.
Implements llvm::PMTopLevelManager.
Definition at line 337 of file PassManager.cpp.
References llvm::Pass::assignPassManager(), and llvm::Pass::setResolver().
| MPPassManager* llvm::PassManagerImpl::getContainedManager | ( | unsigned | N | ) | [inline] |
char llvm::PassManagerImpl::ID = 0 [static] |
Definition at line 316 of file PassManager.cpp.