LLVM API Documentation

Public Member Functions
llvm::PrintReg Class Reference

#include <TargetRegisterInfo.h>

List of all members.

Public Member Functions

 PrintReg (unsigned reg, const TargetRegisterInfo *tri=nullptr, unsigned subidx=0)
void print (raw_ostream &) const

Detailed Description

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.


Constructor & Destructor Documentation

llvm::PrintReg::PrintReg ( unsigned  reg,
const TargetRegisterInfo tri = nullptr,
unsigned  subidx = 0 
) [inline, explicit]

Definition at line 911 of file TargetRegisterInfo.h.


Member Function Documentation

void PrintReg::print ( raw_ostream OS) const

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