LLVM API Documentation

llvm::PassManager Class Reference

#include <PassManager.h>

Collaboration diagram for llvm::PassManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PassManager ()
 ~PassManager ()
void add (Pass *P)
bool run (Module &M)

Detailed Description

Definition at line 30 of file PassManager.h.


Constructor & Destructor Documentation

PassManager::PassManager (  ) 

Definition at line 78 of file Pass.cpp.

PassManager::~PassManager (  ) 

Definition at line 79 of file Pass.cpp.


Member Function Documentation

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'.

Definition at line 80 of file Pass.cpp.

References llvm::PassManagerT< Trait >::add().

Referenced by llvm::X86TargetMachine::addPassesToEmitFile(), llvm::CTargetMachine::addPassesToEmitFile(), llvm::SparcTargetMachine::addPassesToEmitFile(), llvm::PPCTargetMachine::addPassesToEmitFile(), llvm::IA64TargetMachine::addPassesToEmitFile(), llvm::ARMTargetMachine::addPassesToEmitFile(), llvm::AlphaTargetMachine::addPassesToEmitFile(), llvm::addX86ELFObjectWriterPass(), and llvm::verifyModule().

bool PassManager::run ( Module M  ) 

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 85 of file Pass.cpp.

References M, and llvm::ModulePassManager::runOnModule().

Referenced by llvm::verifyModule().


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