LLVM API Documentation

Public Member Functions
llvm::legacy::PassManager Class Reference

PassManager manages ModulePassManagers. More...

#include <LegacyPassManager.h>

Inheritance diagram for llvm::legacy::PassManager:
Inheritance graph
[legend]
Collaboration diagram for llvm::legacy::PassManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PassManager ()
 Create new pass manager.
 ~PassManager ()
void add (Pass *P) override
bool run (Module &M)

Detailed Description

PassManager manages ModulePassManagers.

Definition at line 48 of file LegacyPassManager.h.


Constructor & Destructor Documentation

Create new pass manager.

Definition at line 1745 of file LegacyPassManager.cpp.

References llvm::PMDataManager::setTopLevelManager().

Definition at line 1751 of file LegacyPassManager.cpp.


Member Function Documentation

void PassManager::add ( Pass P) [override, 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::legacy::PassManagerBase.

Definition at line 1759 of file LegacyPassManager.cpp.

References llvm::legacy::PassManagerImpl::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.

Definition at line 1765 of file LegacyPassManager.cpp.

References llvm::legacy::PassManagerImpl::run().


The documentation for this class was generated from the following files: