vreg>reg ( vreg -- reg/spill-slot )
Assigning registers to live intervals

Prev:insert-spill ( live-interval -- )
Next:vreg>spill-slot ( vreg -- spill-slot )


Vocabulary
compiler.cfg.linear-scan.assignment

Inputs
vregvirtual register


Outputs
reg/spill-slota register or a spill slot


Word description
Translates a virtual register to a physical one. If the vreg is not in the pending set, then it must have been spilled and its spill slot is returned.

Errors
Can throw a bad-vreg error if the vreg is not in the pending-interval-assoc and also doesn't have a spill slot registered.

See also
lookup-spill-slot, pending-interval-assoc

Definition