LLVM 18.0.0git
|
Lightweight class that wraps the location operand metadata of a debug intrinsic. More...
#include "llvm/IR/IntrinsicInst.h"
Public Member Functions | |
RawLocationWrapper ()=default | |
RawLocationWrapper (Metadata *RawLocation) | |
Metadata * | getRawLocation () const |
iterator_range< location_op_iterator > | location_ops () const |
Get the locations corresponding to the variable referenced by the debug info intrinsic. | |
Value * | getVariableLocationOp (unsigned OpIdx) const |
unsigned | getNumVariableLocationOps () const |
bool | hasArgList () const |
bool | isKillLocation (const DIExpression *Expression) const |
Lightweight class that wraps the location operand metadata of a debug intrinsic.
The raw location may be a ValueAsMetadata, an empty MDTuple, or a DIArgList.
Definition at line 228 of file IntrinsicInst.h.
|
default |
|
inlineexplicit |
Definition at line 233 of file IntrinsicInst.h.
References assert().
|
inline |
Definition at line 247 of file IntrinsicInst.h.
References getRawLocation(), and hasArgList().
Referenced by llvm::DbgVariableIntrinsic::getNumVariableLocationOps(), and isKillLocation().
|
inline |
Definition at line 241 of file IntrinsicInst.h.
Referenced by getNumVariableLocationOps(), getVariableLocationOp(), hasArgList(), isKillLocation(), and location_ops().
Definition at line 99 of file IntrinsicInst.cpp.
References assert(), and getRawLocation().
Referenced by llvm::SelectionDAGBuilder::addDanglingDebugInfo(), and llvm::DbgVariableIntrinsic::getVariableLocationOp().
|
inline |
Definition at line 252 of file IntrinsicInst.h.
References getRawLocation().
Referenced by getNumVariableLocationOps(), handleDanglingVariadicDebugInfo(), llvm::DbgVariableIntrinsic::hasArgList(), and isKillLocation().
|
inline |
Definition at line 253 of file IntrinsicInst.h.
References llvm::any_of(), getNumVariableLocationOps(), getRawLocation(), hasArgList(), and location_ops().
Referenced by llvm::DbgVariableIntrinsic::isKillLocation().
iterator_range< location_op_iterator > RawLocationWrapper::location_ops | ( | ) | const |
Get the locations corresponding to the variable referenced by the debug info intrinsic.
DbgVariableIntrinsic - This is the common base class for debug info intrinsics for variables.
Depending on the intrinsic, this could be the variable's value or its address.
Definition at line 74 of file IntrinsicInst.cpp.
References assert(), and getRawLocation().
Referenced by handleDanglingVariadicDebugInfo(), isKillLocation(), and llvm::DbgVariableIntrinsic::location_ops().
|
friend |
Definition at line 270 of file IntrinsicInst.h.
|
friend |
Definition at line 282 of file IntrinsicInst.h.
|
friend |
Definition at line 286 of file IntrinsicInst.h.
|
friend |
Definition at line 266 of file IntrinsicInst.h.
|
friend |
Definition at line 274 of file IntrinsicInst.h.
|
friend |
Definition at line 278 of file IntrinsicInst.h.