class PtrUseVisitorBase::PtrInfo
Declaration
class PtrUseVisitorBase::PtrInfo { /* full declaration omitted */ };
Description
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.
Declared at: llvm/include/llvm/Analysis/PtrUseVisitor.h:62
Method Overview
- public PtrInfo()
- public llvm::Instruction * getAbortingInst() const
- public llvm::Instruction * getEscapingInst() const
- public bool isAborted() const
- public bool isEscaped() const
- public void reset()
- public void setAborted(llvm::Instruction * I = nullptr)
- public void setEscaped(llvm::Instruction * I = nullptr)
- public void setEscapedAndAborted(llvm::Instruction * I = nullptr)
Methods
¶PtrInfo()
PtrInfo()
Declared at: llvm/include/llvm/Analysis/PtrUseVisitor.h:64
¶llvm::Instruction* getAbortingInst() const
llvm::Instruction* getAbortingInst() const
Description
Get the instruction causing the visit to abort.
Declared at: llvm/include/llvm/Analysis/PtrUseVisitor.h:83
Returns
a pointer to the instruction causing the abort if one is available; otherwise returns null.
¶llvm::Instruction* getEscapingInst() const
llvm::Instruction* getEscapingInst() const
Description
Get the instruction causing the pointer to escape.
Declared at: llvm/include/llvm/Analysis/PtrUseVisitor.h:88
Returns
a pointer to the instruction which escapes the pointer if one is available; otherwise returns null.
¶bool isAborted() const
bool isAborted() const
Description
Did we abort the visit early?
Declared at: llvm/include/llvm/Analysis/PtrUseVisitor.h:75
¶bool isEscaped() const
bool isEscaped() const
Description
Is the pointer escaped at some point?
Declared at: llvm/include/llvm/Analysis/PtrUseVisitor.h:78
¶void reset()
void reset()
Description
Reset the pointer info, clearing all state.
Declared at: llvm/include/llvm/Analysis/PtrUseVisitor.h:67
¶void setAborted(llvm::Instruction* I = nullptr)
void setAborted(llvm::Instruction* I = nullptr)
Description
Mark the visit as aborted. Intended for use in a void return.
Declared at: llvm/include/llvm/Analysis/PtrUseVisitor.h:92
Parameters
- llvm::Instruction* I = nullptr
- The instruction which caused the visit to abort, if available.
¶void setEscaped(llvm::Instruction* I = nullptr)
void setEscaped(llvm::Instruction* I = nullptr)
Description
Mark the pointer as escaped. Intended for use in a void return.
Declared at: llvm/include/llvm/Analysis/PtrUseVisitor.h:99
Parameters
- llvm::Instruction* I = nullptr
- The instruction which escapes the pointer, if available.
¶void setEscapedAndAborted(
llvm::Instruction* I = nullptr)
void setEscapedAndAborted(
llvm::Instruction* I = nullptr)
Description
Mark the pointer as escaped, and the visit as aborted. Intended for use in a void return.
Declared at: llvm/include/llvm/Analysis/PtrUseVisitor.h:108
Parameters
- llvm::Instruction* I = nullptr
- The instruction which both escapes the pointer and aborts the visit, if available.