Create Printable object to print virtual registers and physical registers on a raw_ostream.

Synopsis

Declared in <llvm/CodeGen/TargetRegisterInfo.h>

Printable
printVRegOrUnit(
    VirtRegOrUnit VRegOrUnit,
    TargetRegisterInfo const* TRI);

Return Value

Simple wrapper around std::function<void(raw_ostream&)>. This class is useful to construct print helpers for raw_ostream.

Parameters

Name

Description

VRegOrUnit

Wrapper class representing a virtual register or register unit.

TRI

TargetRegisterInfo base class ‐ We assume that the target defines a static array of TargetRegisterDesc objects that represent all of the machine registers that the target has. As such, we simply have to track a pointer to this array so that we can turn register number into a register descriptor.

Created with MrDocs