LLVM 20.0.0git
|
This class provides information about the result of a visit. More...
#include "llvm/Analysis/PtrUseVisitor.h"
Public Member Functions | |
PtrInfo () | |
void | reset () |
Reset the pointer info, clearing all state. | |
bool | isAborted () const |
Did we abort the visit early? | |
bool | isEscaped () const |
Is the pointer escaped at some point? | |
Instruction * | getAbortingInst () const |
Get the instruction causing the visit to abort. | |
Instruction * | getEscapingInst () const |
Get the instruction causing the pointer to escape. | |
void | setAborted (Instruction *I=nullptr) |
Mark the visit as aborted. | |
void | setEscaped (Instruction *I=nullptr) |
Mark the pointer as escaped. | |
void | setEscapedAndAborted (Instruction *I=nullptr) |
Mark the pointer as escaped, and the visit as aborted. | |
This class provides information about the result of a visit.
After walking all the users (recursively) of a pointer, the basic infrastructure records some commonly useful information such as escape analysis and whether the visit completed or aborted early.
Definition at line 53 of file PtrUseVisitor.h.
|
inline |
Definition at line 55 of file PtrUseVisitor.h.
|
inline |
Get the instruction causing the visit to abort.
Definition at line 74 of file PtrUseVisitor.h.
|
inline |
Get the instruction causing the pointer to escape.
Definition at line 79 of file PtrUseVisitor.h.
|
inline |
Did we abort the visit early?
Definition at line 66 of file PtrUseVisitor.h.
Referenced by llvm::PtrUseVisitor< DerivedT >::visitPtr().
|
inline |
Is the pointer escaped at some point?
Definition at line 69 of file PtrUseVisitor.h.
|
inline |
Reset the pointer info, clearing all state.
Definition at line 58 of file PtrUseVisitor.h.
Referenced by llvm::PtrUseVisitor< DerivedT >::visitPtr().
|
inline |
Mark the visit as aborted.
Intended for use in a void return.
I | The instruction which caused the visit to abort, if available. |
Definition at line 83 of file PtrUseVisitor.h.
References I.
Referenced by setEscapedAndAborted().
|
inline |
Mark the pointer as escaped.
Intended for use in a void return.
I | The instruction which escapes the pointer, if available. |
Definition at line 90 of file PtrUseVisitor.h.
References I.
Referenced by setEscapedAndAborted(), llvm::PtrUseVisitor< DerivedT >::visitCallBase(), llvm::PtrUseVisitor< DerivedT >::visitPtrToIntInst(), and llvm::PtrUseVisitor< DerivedT >::visitStoreInst().
|
inline |
Mark the pointer as escaped, and the visit as aborted.
Intended for use in a void return.
I | The instruction which both escapes the pointer and aborts the visit, if available. |
Definition at line 99 of file PtrUseVisitor.h.
References I, setAborted(), and setEscaped().