LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
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 81 of file InstrRefBasedImpl.h.

Constructor & Destructor Documentation

◆ LocIdx()

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

Definition at line 90 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 101 of file InstrRefBasedImpl.h.

Referenced by TransferTracker::checkInstForNewValues().

◆ MakeIllegalLoc()

static LocIdx LiveDebugValues::LocIdx::MakeIllegalLoc ( )
inlinestatic

◆ MakeTombstoneLoc()

static LocIdx LiveDebugValues::LocIdx::MakeTombstoneLoc ( )
inlinestatic

Definition at line 95 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 111 of file InstrRefBasedImpl.h.

◆ operator!=() [2/2]

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

Definition at line 109 of file InstrRefBasedImpl.h.

◆ operator<()

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

Definition at line 113 of file InstrRefBasedImpl.h.

References llvm::Other.

◆ operator==() [1/2]

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

Definition at line 107 of file InstrRefBasedImpl.h.

◆ operator==() [2/2]

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

Definition at line 105 of file InstrRefBasedImpl.h.


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