LLVM 22.0.0git
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 585 of file MachineFunction.h.

Constructor & Destructor Documentation

◆ DebugSubstitution()

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

Definition at line 591 of file MachineFunction.h.

References Dest, Src, and Subreg.

Referenced by operator<().

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 597 of file MachineFunction.h.

References DebugSubstitution(), llvm::Other, and Src.

Member Data Documentation

◆ Dest

DebugInstrOperandPair llvm::MachineFunction::DebugSubstitution::Dest

Replacement instruction / operand pair.

Definition at line 588 of file MachineFunction.h.

Referenced by DebugSubstitution().

◆ Src

DebugInstrOperandPair llvm::MachineFunction::DebugSubstitution::Src

Source instruction / operand pair.

Definition at line 587 of file MachineFunction.h.

Referenced by DebugSubstitution(), and operator<().

◆ Subreg

unsigned llvm::MachineFunction::DebugSubstitution::Subreg

Qualifier for which part of Dest is read.

Definition at line 589 of file MachineFunction.h.

Referenced by DebugSubstitution().


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