LLVM  14.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"

Collaboration diagram for llvm::MachineFunction::DebugSubstitution:
Collaboration graph
[legend]

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. More...
 

Public Attributes

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

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

Constructor & Destructor Documentation

◆ DebugSubstitution()

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

Definition at line 469 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 475 of file MachineFunction.h.

References Other.

Member Data Documentation

◆ Dest

DebugInstrOperandPair llvm::MachineFunction::DebugSubstitution::Dest

Replacement instruction / operand pair.

Definition at line 466 of file MachineFunction.h.

◆ Src

DebugInstrOperandPair llvm::MachineFunction::DebugSubstitution::Src

Source instruction / operand pair.

Definition at line 465 of file MachineFunction.h.

◆ Subreg

unsigned llvm::MachineFunction::DebugSubstitution::Subreg

Qualifier for which part of Dest is read.

Definition at line 467 of file MachineFunction.h.


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