class PassManagerBase

Declaration

class PassManagerBase { /* full declaration omitted */ };

Description

PassManagerBase - An abstract interface to allow code to add passes to a pass manager without having to hard-code what kind of pass manager it is.

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

Method Overview

Methods

virtual 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:44

Parameters

llvm::Pass* P

virtual ~PassManagerBase()

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