llvm::MCRegUnit

Opaque identifier for a register unit used to compute register aliasing.

Synopsis

Declared in <llvm/MC/MCRegister.h>

enum class MCRegUnit : unsigned int;

Description

Register units are used to compute register aliasing. Every register has at least one register unit, but it can have more. Two registers overlap if and only if they have a common register unit.

A target with a complicated sub-register structure will typically have many fewer register units than actual registers. MCRI::getNumRegUnits() returns the number of register units in the target.

Non-Member Functions

NameDescription
printRegUnitCreate Printable object to print register units on a raw_ostream.