LLVM 19.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::MachineFunction::DebugSubstitution Class Reference

Replacement definition for a debug instruction reference. More...

#include "llvm/CodeGen/MachineFunction.h"

Public Member Functions

 DebugSubstitution (const DebugInstrOperandPair &Src, const DebugInstrOperandPair &Dest, unsigned Subreg)
 
bool operator< (const DebugSubstitution &Other) const
 Order only by source instruction / operand pair: there should never be duplicate entries for the same source in any collection.
 

Public Attributes

DebugInstrOperandPair Src
 Source instruction / operand pair.
 
DebugInstrOperandPair Dest
 Replacement instruction / operand pair.
 
unsigned Subreg
 Qualifier for which part of Dest is read.
 

Detailed Description

Replacement definition for a debug instruction reference.

Made up of a source instruction / operand pair, destination pair, and a qualifying subregister indicating what bits in the operand make up the substitution. of %1: %0:gr32 = someinst, debug-instr-number 1 %1:gr16 = %0.some_16_bit_subreg, debug-instr-number 2 Would receive the substitution {{2, 0}, {1, 0}, $subreg}, where $subreg is the subregister number for some_16_bit_subreg.

Definition at line 533 of file MachineFunction.h.

Constructor & Destructor Documentation

◆ DebugSubstitution()

llvm::MachineFunction::DebugSubstitution::DebugSubstitution ( const DebugInstrOperandPair Src,
const DebugInstrOperandPair Dest,
unsigned  Subreg 
)
inline

Definition at line 539 of file MachineFunction.h.

Member Function Documentation

◆ operator<()

bool llvm::MachineFunction::DebugSubstitution::operator< ( const DebugSubstitution Other) const
inline

Order only by source instruction / operand pair: there should never be duplicate entries for the same source in any collection.

Definition at line 545 of file MachineFunction.h.

References Other.

Member Data Documentation

◆ Dest

DebugInstrOperandPair llvm::MachineFunction::DebugSubstitution::Dest

Replacement instruction / operand pair.

Definition at line 536 of file MachineFunction.h.

◆ Src

DebugInstrOperandPair llvm::MachineFunction::DebugSubstitution::Src

Source instruction / operand pair.

Definition at line 535 of file MachineFunction.h.

◆ Subreg

unsigned llvm::MachineFunction::DebugSubstitution::Subreg

Qualifier for which part of Dest is read.

Definition at line 537 of file MachineFunction.h.


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