LLVM 20.0.0git
|
An ID used in the DbgOpIDMap (below) to lookup a stored DbgOp. More...
#include "CodeGen/LiveDebugValues/InstrRefBasedImpl.h"
Classes | |
struct | IsConstIndexPair |
Public Member Functions | |
DbgOpID () | |
DbgOpID (uint32_t RawID) | |
DbgOpID (bool IsConst, uint32_t Index) | |
bool | operator== (const DbgOpID &Other) const |
bool | operator!= (const DbgOpID &Other) const |
uint32_t | asU32 () const |
bool | isUndef () const |
bool | isConst () const |
uint32_t | getIndex () const |
void | dump (const MLocTracker *MTrack, const DbgOpIDMap *OpStore) const |
Public Attributes | |
union { | |
struct IsConstIndexPair ID | |
uint32_t RawID | |
}; | |
Static Public Attributes | |
static DbgOpID | UndefID = DbgOpID(0xffffffff) |
An ID used in the DbgOpIDMap (below) to lookup a stored DbgOp.
This is used in place of actual DbgOps inside of a DbgValue to reduce its size, as DbgValue is very frequently used and passed around, and the actual DbgOp is over 8x larger than this class, due to storing a MachineOperand. This ID should be equal for all equal DbgOps, and also encodes whether the mapped DbgOp is a constant, meaning that for simple equality or const-ness checks it is not necessary to lookup this ID.
Definition at line 411 of file InstrRefBasedImpl.h.
|
inline |
|
inline |
Definition at line 425 of file InstrRefBasedImpl.h.
Definition at line 426 of file InstrRefBasedImpl.h.
|
inline |
void DbgOpID::dump | ( | const MLocTracker * | MTrack, |
const DbgOpIDMap * | OpStore | ||
) | const |
Definition at line 990 of file InstrRefBasedImpl.cpp.
References asU32(), llvm::dbgs(), LiveDebugValues::DbgOp::dump(), and LiveDebugValues::DbgOpIDMap::find().
Referenced by LiveDebugValues::DbgValue::dump().
|
inline |
Definition at line 437 of file InstrRefBasedImpl.h.
|
inline |
Definition at line 436 of file InstrRefBasedImpl.h.
References isUndef().
Referenced by LiveDebugValues::DbgValue::hasJoinableLocOps().
|
inline |
Definition at line 431 of file InstrRefBasedImpl.h.
References llvm::Other.
Definition at line 430 of file InstrRefBasedImpl.h.
References llvm::Other, and RawID.
union { ... } LiveDebugValues::DbgOpID::@465 |
struct IsConstIndexPair LiveDebugValues::DbgOpID::ID |
Definition at line 418 of file InstrRefBasedImpl.h.
uint32_t LiveDebugValues::DbgOpID::RawID |
Definition at line 419 of file InstrRefBasedImpl.h.
Referenced by asU32(), and operator==().
Definition at line 428 of file InstrRefBasedImpl.h.
Referenced by LiveDebugValues::DbgOpIDMap::find(), LiveDebugValues::DbgValue::getDbgOpID(), LiveDebugValues::DbgOpIDMap::insert(), and isUndef().