class PassInfo

Declaration

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

Declared at: llvm/include/llvm/PassInfo.h:30

Method Overview

Methods

PassInfo(llvm::StringRef name,
         llvm::StringRef arg,
         const void* pi,
         llvm::PassInfo::NormalCtor_t normal,
         bool isCFGOnly,
         bool is_analysis)

Description

PassInfo ctor - Do not call this directly, this should only be invoked through RegisterPass.

Declared at: llvm/include/llvm/PassInfo.h:47

Parameters

llvm::StringRef name
llvm::StringRef arg
const void* pi
llvm::PassInfo::NormalCtor_t normal
bool isCFGOnly
bool is_analysis

PassInfo(llvm::StringRef name, const void* pi)

Description

PassInfo ctor - Do not call this directly, this should only be invoked through RegisterPass. This version is for use by analysis groups; it does not auto-register the pass.

Declared at: llvm/include/llvm/PassInfo.h:55

Parameters

llvm::StringRef name
const void* pi

PassInfo(const llvm::PassInfo&)

Declared at: llvm/include/llvm/PassInfo.h:58

Parameters

const llvm::PassInfo&

void addInterfaceImplemented(
    const llvm::PassInfo* ItfPI)

Description

addInterfaceImplemented - This method is called when this pass is registered as a member of an analysis group with the RegisterAnalysisGroup template.

Declared at: llvm/include/llvm/PassInfo.h:107

Parameters

const llvm::PassInfo* ItfPI

llvm::Pass* createPass() const

Description

createPass() - Use this method to create an instance of this pass.

Declared at: llvm/include/llvm/PassInfo.h:96

const int& getInterfacesImplemented() const

Declared at: llvm/include/llvm/PassInfo.h:113

llvm::PassInfo::NormalCtor_t getNormalCtor() const

Description

getNormalCtor - Return a pointer to a function, that when called, creates an instance of the pass and returns it. This pointer may be null if there is no default constructor for the pass.

Declared at: llvm/include/llvm/PassInfo.h:88

llvm::StringRef getPassArgument() const

Description

getPassArgument - Return the command line option that may be passed to 'opt' that will cause this pass to be run. This will return null if there is no argument.

Declared at: llvm/include/llvm/PassInfo.h:67

llvm::StringRef getPassName() const

Description

getPassName - Return the friendly name for the pass, never returns null

Declared at: llvm/include/llvm/PassInfo.h:62

const void* getTypeInfo() const

Description

getTypeInfo - Return the id object for the pass... TODO : Rename

Declared at: llvm/include/llvm/PassInfo.h:71

bool isAnalysis() const

Declared at: llvm/include/llvm/PassInfo.h:79

bool isAnalysisGroup() const

Description

isAnalysisGroup - Return true if this is an analysis group, not a normal pass.

Declared at: llvm/include/llvm/PassInfo.h:78

bool isCFGOnlyPass() const

Description

isCFGOnlyPass - return true if this pass only looks at the CFG for the function.

Declared at: llvm/include/llvm/PassInfo.h:83

bool isPassID(const void* IDPtr) const

Description

Return true if this PassID implements the specified ID pointer.

Declared at: llvm/include/llvm/PassInfo.h:74

Parameters

const void* IDPtr

void setNormalCtor(
    llvm::PassInfo::NormalCtor_t Ctor)

Declared at: llvm/include/llvm/PassInfo.h:91

Parameters

llvm::PassInfo::NormalCtor_t Ctor