class AnalysisUsage

Declaration

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

Declared at: llvm/include/llvm/PassAnalysisSupport.h:42

Method Overview

Methods

AnalysisUsage()

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

template <class PassClass>
llvm::AnalysisUsage& addPreserved()

Description

Add the specified Pass class to the set of analyses preserved by this pass.

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

Templates

PassClass

llvm::AnalysisUsage& addPreserved(
    llvm::StringRef Arg)

Description

Add the Pass with the specified argument string to the set of analyses preserved by this pass. If no such Pass exists, do nothing. This can be useful when a pass is trivially preserved, but may not be linked in. Be careful about spelling!

Declared at: llvm/include/llvm/PassAnalysisSupport.h:117

Parameters

llvm::StringRef Arg

llvm::AnalysisUsage& addPreservedID(
    const void* ID)

Description

@ { Add the specified ID to the set of analyses preserved by this pass.

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

Parameters

const void* ID

llvm::AnalysisUsage& addPreservedID(char& ID)

Declared at: llvm/include/llvm/PassAnalysisSupport.h:82

Parameters

char& ID

template <class PassClass>
llvm::AnalysisUsage& addRequired()

Declared at: llvm/include/llvm/PassAnalysisSupport.h:65

Templates

PassClass

llvm::AnalysisUsage& addRequiredID(const void* ID)

Description

@ { Add the specified ID to the required set of the usage info for a pass.

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

Parameters

const void* ID

llvm::AnalysisUsage& addRequiredID(char& ID)

Declared at: llvm/include/llvm/PassAnalysisSupport.h:63

Parameters

char& ID

template <class PassClass>
llvm::AnalysisUsage& addRequiredTransitive()

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

Templates

PassClass

llvm::AnalysisUsage& addRequiredTransitiveID(
    char& ID)

Declared at: llvm/include/llvm/PassAnalysisSupport.h:69

Parameters

char& ID

template <class PassClass>
llvm::AnalysisUsage& addUsedIfAvailable()

Description

Add the specified Pass class to the set of analyses used by this pass.

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

Templates

PassClass

llvm::AnalysisUsage& addUsedIfAvailableID(
    char& ID)

Declared at: llvm/include/llvm/PassAnalysisSupport.h:101

Parameters

char& ID

llvm::AnalysisUsage& addUsedIfAvailableID(
    const void* ID)

Description

@ { Add the specified ID to the set of analyses used by this pass if they are available..

Declared at: llvm/include/llvm/PassAnalysisSupport.h:97

Parameters

const void* ID

const llvm::AnalysisUsage::VectorType&
getPreservedSet() const

Declared at: llvm/include/llvm/PassAnalysisSupport.h:138

bool getPreservesAll() const

Description

Determine whether a pass said it does not transform its input at all

Declared at: llvm/include/llvm/PassAnalysisSupport.h:123

const llvm::AnalysisUsage::VectorType&
getRequiredSet() const

Declared at: llvm/include/llvm/PassAnalysisSupport.h:134

const llvm::AnalysisUsage::VectorType&
getRequiredTransitiveSet() const

Declared at: llvm/include/llvm/PassAnalysisSupport.h:135

const llvm::AnalysisUsage::VectorType&
getUsedSet() const

Declared at: llvm/include/llvm/PassAnalysisSupport.h:139

void setPreservesAll()

Description

Set by analyses that do not transform their input at all

Declared at: llvm/include/llvm/PassAnalysisSupport.h:120

void setPreservesCFG()

Description

This function should be called by the pass, iff they do not: 1. Add or remove basic blocks from the function 2. Modify terminator instructions in any way. This function annotates the AnalysisUsage info object to say that analyses that only depend on the CFG are preserved by this pass.

Declared at: llvm/include/llvm/PassAnalysisSupport.h:132