LLVM: llvm::PassInfo Class Reference (original) (raw)
PassInfo class - An instance of this class exists for every pass known by the system, and can be obtained from a live Pass by calling its getPassInfo() method. More...
#include "[llvm/PassInfo.h](PassInfo%5F8h%5Fsource.html)"
| Public Types | |
|---|---|
| using | NormalCtor_t = Pass* (*)() |
| Public Member Functions | |
|---|---|
| PassInfo (StringRef name, StringRef arg, const void *pi, NormalCtor_t normal, bool isCFGOnly, bool is_analysis) | |
| PassInfo ctor - Do not call this directly, this should only be invoked through RegisterPass. | |
| PassInfo (const PassInfo &)=delete | |
| PassInfo & | operator= (const PassInfo &)=delete |
| StringRef | getPassName () const |
| getPassName - Return the friendly name for the pass, never returns null | |
| StringRef | getPassArgument () const |
| getPassArgument - Return the command line option that may be passed to 'opt' that will cause this pass to be run. | |
| const void * | getTypeInfo () const |
| getTypeInfo - Return the id object for the pass... TODO : Rename | |
| bool | isPassID (const void *IDPtr) const |
| Return true if this PassID implements the specified ID pointer. | |
| bool | isAnalysis () const |
| bool | isCFGOnlyPass () const |
| isCFGOnlyPass - return true if this pass only looks at the CFG for the function. | |
| NormalCtor_t | getNormalCtor () const |
| getNormalCtor - Return a pointer to a function, that when called, creates an instance of the pass and returns it. | |
| void | setNormalCtor (NormalCtor_t Ctor) |
| Pass * | createPass () const |
| createPass() - Use this method to create an instance of this pass. |
PassInfo class - An instance of this class exists for every pass known by the system, and can be obtained from a live Pass by calling its getPassInfo() method.
These objects are set up by the RegisterPass<> template.
Definition at line 29 of file PassInfo.h.
◆ NormalCtor_t
◆ PassInfo() [1/2]
◆ PassInfo() [2/2]
◆ createPass()
| Pass * llvm::PassInfo::createPass ( ) const | inline |
|---|
◆ getNormalCtor()
| NormalCtor_t llvm::PassInfo::getNormalCtor ( ) const | inline |
|---|
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.
Definition at line 76 of file PassInfo.h.
◆ getPassArgument()
| StringRef llvm::PassInfo::getPassArgument ( ) const | inline |
|---|
◆ getPassName()
| StringRef llvm::PassInfo::getPassName ( ) const | inline |
|---|
getPassName - Return the friendly name for the pass, never returns null
Definition at line 53 of file PassInfo.h.
◆ getTypeInfo()
| const void * llvm::PassInfo::getTypeInfo ( ) const | inline |
|---|
◆ isAnalysis()
| bool llvm::PassInfo::isAnalysis ( ) const | inline |
|---|
◆ isCFGOnlyPass()
| bool llvm::PassInfo::isCFGOnlyPass ( ) const | inline |
|---|
isCFGOnlyPass - return true if this pass only looks at the CFG for the function.
Definition at line 71 of file PassInfo.h.
◆ isPassID()
| bool llvm::PassInfo::isPassID ( const void * IDPtr) const | inline |
|---|
Return true if this PassID implements the specified ID pointer.
Definition at line 65 of file PassInfo.h.
◆ operator=()
◆ setNormalCtor()
| void llvm::PassInfo::setNormalCtor ( NormalCtor_t Ctor) | inline |
|---|
The documentation for this class was generated from the following file:
- include/llvm/PassInfo.h