class FunctionPassManager

Declaration

class FunctionPassManager : public PassManagerBase { /* full declaration omitted */ };

Description

FunctionPassManager manages FunctionPasses.

Declared at: llvm/include/llvm/IR/LegacyPassManager.h:71

Inherits from: PassManagerBase

Member Variables

private llvm::legacy::FunctionPassManagerImpl* FPM
private llvm::Module* M

Method Overview

Inherited from PassManagerBase:

Methods

FunctionPassManager(llvm::Module* M)

Description

FunctionPassManager ctor - This initializes the pass manager. It needs, but does not take ownership of, the specified Module.

Declared at: llvm/include/llvm/IR/LegacyPassManager.h:75

Parameters

llvm::Module* M

void add(llvm::Pass* P)

Description

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 may even destroy the pass right away if it is found to be redundant. This implies that all passes MUST be allocated with 'new'.

Declared at: llvm/include/llvm/IR/LegacyPassManager.h:78

Parameters

llvm::Pass* P

bool doFinalization()

Description

doFinalization - Run all of the finalizers for the function passes.

Declared at: llvm/include/llvm/IR/LegacyPassManager.h:92

bool doInitialization()

Description

doInitialization - Run all of the initializers for the function passes.

Declared at: llvm/include/llvm/IR/LegacyPassManager.h:88

bool run(llvm::Function& F)

Description

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.

Declared at: llvm/include/llvm/IR/LegacyPassManager.h:84

Parameters

llvm::Function& F

~FunctionPassManager()

Declared at: llvm/include/llvm/IR/LegacyPassManager.h:76