Handbook
Glossary
vreg>spill-slot ( vreg -- spill-slot )
Assigning registers to live intervals
Prev:
vreg>reg ( vreg -- reg/spill-slot )
Next:
vregs>regs ( assoc -- assoc' )
Vocabulary
compiler
.
cfg
.
linear-scan
.
assignment
Inputs
vreg
an
integer
Outputs
spill-slot
a
spill-slot
Word description
Converts a vreg number to a spill slot.
Definition
USING:
compiler.cfg.linear-scan.allocation.state
compiler.cfg.registers
kernel
;
IN:
compiler.cfg.linear-scan.assignment
:
vreg>spill-slot
( vreg -- spill-slot )
dup
rep-of
lookup-spill-slot
;