[][src]Type Definition cranelift_codegen::isa::registers::RegUnit

type RegUnit = u16;

Register units are the smallest units of register allocation.

Normally there is a 1-1 correspondence between registers and register units, but when an ISA has aliasing registers, the aliasing can be modeled with registers that cover multiple register units.

The register allocator will enforce that each register unit only gets used for one thing.