|
LLVM
3.7.0
|
PrintReg - Helper class for printing registers on a raw_ostream. More...
#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 950 of file TargetRegisterInfo.h.
|
inlineexplicit |
Definition at line 955 of file TargetRegisterInfo.h.
| void PrintReg::print | ( | raw_ostream & | OS | ) | const |
Definition at line 37 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<<().
1.8.6