LLVM 20.0.0git
|
Class recording the (high level) value of a variable. More...
#include "CodeGen/LiveDebugValues/InstrRefBasedImpl.h"
Public Types | |
enum | KindT { Undef , Def , VPHI , NoVal } |
Public Member Functions | |
DbgValue (ArrayRef< DbgOpID > DbgOps, const DbgValueProperties &Prop) | |
DbgValue (unsigned BlockNo, const DbgValueProperties &Prop, KindT Kind) | |
DbgValue (const DbgValueProperties &Prop, KindT Kind) | |
void | dump (const MLocTracker *MTrack=nullptr, const DbgOpIDMap *OpStore=nullptr) const |
bool | operator== (const DbgValue &Other) const |
bool | operator!= (const DbgValue &Other) const |
ArrayRef< DbgOpID > | getDbgOpIDs () const |
DbgOpID | getDbgOpID (unsigned Index) const |
void | setDbgOpIDs (ArrayRef< DbgOpID > NewIDs) |
unsigned | getLocationOpCount () const |
bool | hasJoinableLocOps (const DbgValue &Other) const |
bool | isUnjoinedPHI () const |
bool | hasIdenticalValidLocOps (const DbgValue &Other) const |
Public Attributes | |
int | BlockNo |
For a NoVal or VPHI DbgValue, which block it was generated in. | |
DbgValueProperties | Properties |
Qualifiers for the ValueIDNum above. | |
KindT | Kind |
Discriminator for whether this is a constant or an in-program value. | |
Class recording the (high level) value of a variable.
Identifies the value of the variable as a list of ValueIDNums and constant MachineOperands, or as an empty list for undef debug values or VPHI values which we have not found valid locations for. This class also stores meta-information about how the value is qualified. Used to reason about variable values when performing the second (DebugVariable specific) dataflow analysis.
Definition at line 512 of file InstrRefBasedImpl.h.
Enumerator | |
---|---|
Undef | |
Def | |
VPHI | |
NoVal |
Definition at line 528 of file InstrRefBasedImpl.h.
|
inline |
Definition at line 540 of file InstrRefBasedImpl.h.
References llvm::any_of(), assert(), llvm::dbgs(), LiveDebugValues::DbgValueProperties::getLocationOpCount(), Idx, Kind, LLVM_DEBUG, MAX_DBG_OPS, llvm::ArrayRef< T >::size(), llvm::size(), and Undef.
|
inline |
|
inline |
Definition at line 566 of file InstrRefBasedImpl.h.
void DbgValue::dump | ( | const MLocTracker * | MTrack = nullptr , |
const DbgOpIDMap * | OpStore = nullptr |
||
) | const |
Definition at line 997 of file InstrRefBasedImpl.cpp.
References BlockNo, llvm::dbgs(), Def, LiveDebugValues::DbgValueProperties::DIExpr, LiveDebugValues::DbgOpID::dump(), getDbgOpID(), getDbgOpIDs(), Idx, LiveDebugValues::DbgValueProperties::Indirect, Kind, NoVal, Properties, and VPHI.
Definition at line 601 of file InstrRefBasedImpl.h.
References assert(), Index, and LiveDebugValues::DbgOpID::UndefID.
Referenced by dump(), and hasJoinableLocOps().
Definition at line 596 of file InstrRefBasedImpl.h.
Referenced by dump(), hasIdenticalValidLocOps(), and operator==().
|
inline |
Definition at line 623 of file InstrRefBasedImpl.h.
References LiveDebugValues::DbgValueProperties::getLocationOpCount(), and Properties.
Referenced by hasJoinableLocOps(), and setDbgOpIDs().
Definition at line 642 of file InstrRefBasedImpl.h.
References llvm::equal(), getDbgOpIDs(), and llvm::Other.
Definition at line 630 of file InstrRefBasedImpl.h.
References getDbgOpID(), getLocationOpCount(), Idx, LiveDebugValues::DbgOpID::isConst(), isUnjoinedPHI(), and llvm::Other.
|
inline |
Definition at line 640 of file InstrRefBasedImpl.h.
Referenced by hasJoinableLocOps().
Definition at line 592 of file InstrRefBasedImpl.h.
References llvm::Other.
Definition at line 577 of file InstrRefBasedImpl.h.
References BlockNo, Def, llvm::equal(), getDbgOpIDs(), Kind, NoVal, llvm::Other, Properties, and VPHI.
Definition at line 611 of file InstrRefBasedImpl.h.
References assert(), getLocationOpCount(), Idx, and llvm::ArrayRef< T >::size().
int LiveDebugValues::DbgValue::BlockNo |
For a NoVal or VPHI DbgValue, which block it was generated in.
Definition at line 523 of file InstrRefBasedImpl.h.
Referenced by dump(), and operator==().
KindT LiveDebugValues::DbgValue::Kind |
Discriminator for whether this is a constant or an in-program value.
Definition at line 538 of file InstrRefBasedImpl.h.
Referenced by DbgValue(), dump(), isUnjoinedPHI(), and operator==().
DbgValueProperties LiveDebugValues::DbgValue::Properties |
Qualifiers for the ValueIDNum above.
Definition at line 526 of file InstrRefBasedImpl.h.
Referenced by dump(), getLocationOpCount(), and operator==().