Handbook
Glossary
allocate-registers ( intervals/sync-points registers -- live-intervals' )
Allocating registers for live intervals
Vocabulary
compiler
.
cfg
.
linear-scan
.
allocation
Inputs
intervals/sync-points
a
sequence
registers
an
assoc
Outputs
live-intervals'
a
sequence
Word description
Performs register allocation of a
sequence
of live intervals. Each live interval is assigned a physical register and also a spill slot if it needs to be spilled.
Definition
USING:
compiler.cfg.linear-scan.allocation.state
namespaces
;
IN:
compiler.cfg.linear-scan.allocation
:
allocate-registers
( intervals/sync-points registers -- live-intervals' )
init-allocator
unhandled-min-heap
get
(allocate-registers)
gather-intervals
;