LLVM 22.0.0git
LiveDebugValues::LocIdx Class Reference

Handle-class for a particular "location". More...

#include "CodeGen/LiveDebugValues/InstrRefBasedImpl.h"

Public Member Functions

 LocIdx (unsigned L)
bool isIllegal () const
uint64_t asU64 () const
bool operator== (unsigned L) const
bool operator== (const LocIdx &L) const
bool operator!= (unsigned L) const
bool operator!= (const LocIdx &L) const
bool operator< (const LocIdx &Other) const

Static Public Member Functions

static LocIdx MakeIllegalLoc ()
static LocIdx MakeTombstoneLoc ()

Detailed Description

Handle-class for a particular "location".

This value-type uniquely symbolises a register or stack location, allowing manipulation of locations without concern for where that location is. Practically, this allows us to treat the state of the machine at a particular point as an array of values, rather than a map of values.

Definition at line 82 of file InstrRefBasedImpl.h.

Constructor & Destructor Documentation

◆ LocIdx()

LiveDebugValues::LocIdx::LocIdx ( unsigned L)
inline

Definition at line 91 of file InstrRefBasedImpl.h.

References assert(), and NUM_LOC_BITS.

Member Function Documentation

◆ asU64()

uint64_t LiveDebugValues::LocIdx::asU64 ( ) const
inline

◆ isIllegal()

bool LiveDebugValues::LocIdx::isIllegal ( ) const
inline

Definition at line 102 of file InstrRefBasedImpl.h.

Referenced by TransferTracker::checkInstForNewValues().

◆ MakeIllegalLoc()

◆ MakeTombstoneLoc()

LocIdx LiveDebugValues::LocIdx::MakeTombstoneLoc ( )
inlinestatic

Definition at line 96 of file InstrRefBasedImpl.h.

Referenced by llvm::DenseMapInfo< LocIdx >::getTombstoneKey().

◆ operator!=() [1/2]

bool LiveDebugValues::LocIdx::operator!= ( const LocIdx & L) const
inline

Definition at line 112 of file InstrRefBasedImpl.h.

◆ operator!=() [2/2]

bool LiveDebugValues::LocIdx::operator!= ( unsigned L) const
inline

Definition at line 110 of file InstrRefBasedImpl.h.

◆ operator<()

bool LiveDebugValues::LocIdx::operator< ( const LocIdx & Other) const
inline

Definition at line 114 of file InstrRefBasedImpl.h.

References llvm::Other.

◆ operator==() [1/2]

bool LiveDebugValues::LocIdx::operator== ( const LocIdx & L) const
inline

Definition at line 108 of file InstrRefBasedImpl.h.

◆ operator==() [2/2]

bool LiveDebugValues::LocIdx::operator== ( unsigned L) const
inline

Definition at line 106 of file InstrRefBasedImpl.h.


The documentation for this class was generated from the following file: