LLVM  16.0.0git
Public Member Functions | Public Attributes | List of all members
LiveDebugValues::DbgOp Struct Reference

TODO: Might pack better if we changed this to a Struct of Arrays, since MachineOperand is width 32, making this struct width 33. More...

#include "CodeGen/LiveDebugValues/InstrRefBasedImpl.h"

Collaboration diagram for LiveDebugValues::DbgOp:
Collaboration graph
[legend]

Public Member Functions

 DbgOp ()
 
 DbgOp (ValueIDNum ID)
 
 DbgOp (MachineOperand MO)
 
bool isUndef () const
 
void dump (const MLocTracker *MTrack) const
 

Public Attributes

union {
   ValueIDNum   ID
 
   MachineOperand   MO
 
}; 
 
bool IsConst
 

Detailed Description

TODO: Might pack better if we changed this to a Struct of Arrays, since MachineOperand is width 32, making this struct width 33.

We could also potentially avoid storing the whole MachineOperand (sizeof=32), instead choosing to store just the contents portion (sizeof=8) and a Kind enum, since we already know it is some type of immediate value. Stores a single debug operand, which can either be a MachineOperand for directly storing immediate values, or a ValueIDNum representing some value computed at some point in the program. IsConst is used as a discriminator.

Definition at line 276 of file InstrRefBasedImpl.h.

Constructor & Destructor Documentation

◆ DbgOp() [1/3]

LiveDebugValues::DbgOp::DbgOp ( )
inline

Definition at line 283 of file InstrRefBasedImpl.h.

◆ DbgOp() [2/3]

LiveDebugValues::DbgOp::DbgOp ( ValueIDNum  ID)
inline

Definition at line 284 of file InstrRefBasedImpl.h.

◆ DbgOp() [3/3]

LiveDebugValues::DbgOp::DbgOp ( MachineOperand  MO)
inline

Definition at line 285 of file InstrRefBasedImpl.h.

Member Function Documentation

◆ dump()

void DbgOp::dump ( const MLocTracker MTrack) const

◆ isUndef()

bool LiveDebugValues::DbgOp::isUndef ( ) const
inline

Definition at line 287 of file InstrRefBasedImpl.h.

References LiveDebugValues::ValueIDNum::EmptyValue.

Referenced by dump().

Member Data Documentation

◆ @434

union { ... }

◆ ID

ValueIDNum LiveDebugValues::DbgOp::ID

Definition at line 278 of file InstrRefBasedImpl.h.

◆ IsConst

bool LiveDebugValues::DbgOp::IsConst

Definition at line 281 of file InstrRefBasedImpl.h.

Referenced by dump().

◆ MO

MachineOperand LiveDebugValues::DbgOp::MO

Definition at line 279 of file InstrRefBasedImpl.h.

Referenced by dump().


The documentation for this struct was generated from the following files: