LLVM API Documentation
#include <PassManager.h>
Collaboration diagram for llvm::FunctionPassManager:
Public Member Functions | |
FunctionPassManager (ModuleProvider *P) | |
~FunctionPassManager () | |
void | add (FunctionPass *P) |
void | add (ImmutablePass *IP) |
bool | run (Function &F) |
Definition at line 51 of file PassManager.h.
|
|
|
|
|
add - ImmutablePasses are not FunctionPasses, so we have a special hack to get them into a FunctionPassManager. Definition at line 97 of file Pass.cpp. References llvm::PassManagerT< UnitType >::add(). |
|
add - Add a pass to the queue of passes to run. This passes ownership of the FunctionPass 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 96 of file Pass.cpp. References llvm::PassManagerT< UnitType >::add(). Referenced by llvm::X86TargetMachine::addPassesToEmitMachineCode(), llvm::SparcV9TargetMachine::addPassesToEmitMachineCode(), llvm::PPC32TargetMachine::addPassesToEmitMachineCode(), llvm::X86JITInfo::addPassesToJITCompile(), llvm::SkeletonJITInfo::addPassesToJITCompile(), llvm::PowerPCJITInfo::addPassesToJITCompile(), and llvm::verifyFunction(). |
|
run - Execute all of the passes scheduled for execution. Keep track of whether any of the passes modifies the function, and if so, return true. Definition at line 98 of file Pass.cpp. References abort(), llvm::ModuleProvider::materializeFunction(), and llvm::FunctionPass::run(). Referenced by llvm::verifyFunction(). |