class AnalysisUsage
Declaration
class AnalysisUsage { /* full declaration omitted */ };
Declared at: llvm/include/llvm/PassAnalysisSupport.h:42
Method Overview
- public AnalysisUsage()
- public template <class PassClass>llvm::AnalysisUsage & addPreserved()
- public llvm::AnalysisUsage & addPreserved(llvm::StringRef Arg)
- public llvm::AnalysisUsage & addPreservedID(const void * ID)
- public llvm::AnalysisUsage & addPreservedID(char & ID)
- public template <class PassClass>llvm::AnalysisUsage & addRequired()
- public llvm::AnalysisUsage & addRequiredID(const void * ID)
- public llvm::AnalysisUsage & addRequiredID(char & ID)
- public template <class PassClass>llvm::AnalysisUsage & addRequiredTransitive()
- public llvm::AnalysisUsage & addRequiredTransitiveID(char & ID)
- public template <class PassClass>llvm::AnalysisUsage & addUsedIfAvailable()
- public llvm::AnalysisUsage & addUsedIfAvailableID(char & ID)
- public llvm::AnalysisUsage & addUsedIfAvailableID(const void * ID)
- public const llvm::AnalysisUsage::VectorType & getPreservedSet() const
- public bool getPreservesAll() const
- public const llvm::AnalysisUsage::VectorType & getRequiredSet() const
- public const llvm::AnalysisUsage::VectorType & getRequiredTransitiveSet() const
- public const llvm::AnalysisUsage::VectorType & getUsedSet() const
- public void setPreservesAll()
- public void setPreservesCFG()
Methods
¶AnalysisUsage()
AnalysisUsage()
Declared at: llvm/include/llvm/PassAnalysisSupport.h:58
¶template <class PassClass>
llvm::AnalysisUsage& addPreserved()
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)
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)
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)
llvm::AnalysisUsage& addPreservedID(char& ID)
Declared at: llvm/include/llvm/PassAnalysisSupport.h:82
Parameters
- char& ID
¶template <class PassClass>
llvm::AnalysisUsage& addRequired()
template <class PassClass>
llvm::AnalysisUsage& addRequired()
Declared at: llvm/include/llvm/PassAnalysisSupport.h:65
Templates
- PassClass
¶llvm::AnalysisUsage& addRequiredID(const void* ID)
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)
llvm::AnalysisUsage& addRequiredID(char& ID)
Declared at: llvm/include/llvm/PassAnalysisSupport.h:63
Parameters
- char& ID
¶template <class PassClass>
llvm::AnalysisUsage& addRequiredTransitive()
template <class PassClass>
llvm::AnalysisUsage& addRequiredTransitive()
Declared at: llvm/include/llvm/PassAnalysisSupport.h:71
Templates
- PassClass
¶llvm::AnalysisUsage& addRequiredTransitiveID(
char& ID)
llvm::AnalysisUsage& addRequiredTransitiveID(
char& ID)
Declared at: llvm/include/llvm/PassAnalysisSupport.h:69
Parameters
- char& ID
¶template <class PassClass>
llvm::AnalysisUsage& addUsedIfAvailable()
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)
llvm::AnalysisUsage& addUsedIfAvailableID(
char& ID)
Declared at: llvm/include/llvm/PassAnalysisSupport.h:101
Parameters
- char& ID
¶llvm::AnalysisUsage& addUsedIfAvailableID(
const void* 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
const llvm::AnalysisUsage::VectorType&
getPreservedSet() const
Declared at: llvm/include/llvm/PassAnalysisSupport.h:138
¶bool getPreservesAll() const
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
const llvm::AnalysisUsage::VectorType&
getRequiredSet() const
Declared at: llvm/include/llvm/PassAnalysisSupport.h:134
¶const llvm::AnalysisUsage::VectorType&
getRequiredTransitiveSet() const
const llvm::AnalysisUsage::VectorType&
getRequiredTransitiveSet() const
Declared at: llvm/include/llvm/PassAnalysisSupport.h:135
¶const llvm::AnalysisUsage::VectorType&
getUsedSet() const
const llvm::AnalysisUsage::VectorType&
getUsedSet() const
Declared at: llvm/include/llvm/PassAnalysisSupport.h:139
¶void setPreservesAll()
void setPreservesAll()
Description
Set by analyses that do not transform their input at all
Declared at: llvm/include/llvm/PassAnalysisSupport.h:120
¶void setPreservesCFG()
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