LLVM API Documentation
#include <TargetRegisterInfo.h>
Public Member Functions | |
PrintReg (unsigned reg, const TargetRegisterInfo *tri=nullptr, unsigned subidx=0) | |
void | print (raw_ostream &) const |
PrintReg - Helper class for printing registers on a raw_ostream. Prints virtual and physical registers with or without a TRI instance.
The format is: noreg - NoRegister vreg5 - a virtual register. vreg5: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) << '
';
Definition at line 906 of file TargetRegisterInfo.h.
llvm::PrintReg::PrintReg | ( | unsigned | reg, |
const TargetRegisterInfo * | tri = nullptr , |
||
unsigned | subidx = 0 |
||
) | [inline, explicit] |
Definition at line 911 of file TargetRegisterInfo.h.
void PrintReg::print | ( | raw_ostream & | OS | ) | const |
Definition at line 36 of file TargetRegisterInfo.cpp.
References llvm::MCRegisterInfo::getName(), llvm::TargetRegisterInfo::getSubRegIndexName(), llvm::TargetRegisterInfo::isStackSlot(), llvm::TargetRegisterInfo::isVirtualRegister(), llvm::TargetRegisterInfo::stackSlot2Index(), and llvm::TargetRegisterInfo::virtReg2Index().
Referenced by llvm::operator<<().