Handbook
Glossary
init-allocator ( intervals/sync-points registers -- )
Vocabulary
compiler
.
cfg
.
linear-scan
.
allocation
.
state
Inputs
intervals/sync-points
sequence
of
live-interval-state
and
sync-point
.
registers
assoc
mapping from register class to available machine registers.
Outputs
None
Word description
Initializes the state for the register allocator.
See also
reg-class
Definition
USING:
kernel
namespaces
;
IN:
compiler.cfg.linear-scan.allocation.state
:
init-allocator
( intervals/sync-points registers -- )
registers
set
>unhandled-min-heap
unhandled-min-heap
set
[
V{
}
clone
]
reg-class-assoc
active-intervals
set
[
V{
}
clone
]
reg-class-assoc
inactive-intervals
set
V{
}
clone
handled-intervals
set
H{
}
clone
spill-slots
set
-1
progress
set
;