ΒΆllvm::Printable printReg(
    llvm::Register Reg,
    const llvm::TargetRegisterInfo* TRI = nullptr,
    unsigned int SubIdx = 0,
    const llvm::MachineRegisterInfo* MRI =
        nullptr)

Description

Prints virtual and physical registers with or without a TRI instance. The format is: %noreg - NoRegister %5 - a virtual register. %5:sub_8bit - a virtual register with sub-register index (with TRI). %eax - a physical register %physreg17 - a physical register when no TRI instance given. Usage: OS < < printReg(Reg, TRI, SubRegIdx) < < '\n';

Declared at: llvm/include/llvm/CodeGen/TargetRegisterInfo.h:1147

Parameters

llvm::Register Reg
const llvm::TargetRegisterInfo* TRI = nullptr
unsigned int SubIdx = 0
const llvm::MachineRegisterInfo* MRI = nullptr