llvm::printRegUnit

Create Printable object to print register units on a raw_ostream.

Synopsis

Declared in <llvm/CodeGen/TargetRegisterInfo.h>

Printable
printRegUnit(
    MCRegUnit Unit,
    TargetRegisterInfo const* TRI);

Description

Register units are named after their root registers:

al - Single root. fp0~st7 - Dual roots.

Usage: OS << printRegUnit(Unit, TRI) << ' ';

Return Value

A Printable object that prints Unit.

Parameters

NameDescription
UnitRegister unit to print.
TRITarget register info used for naming.