Handbook
Glossary
record-use ( vreg n spill-slot? -- )
Live interval utilities
Prev:
record-def ( vreg n spill-slot? -- )
Next:
record-temp ( vreg n -- )
Vocabulary
compiler
.
cfg
.
linear-scan
.
live-intervals
Inputs
vreg
an
integer
n
an
integer
spill-slot?
a
boolean
Outputs
None
Word description
Records that the virtual register was used at the given instruction point.
Definition
USING:
accessors
compiler.cfg.linear-scan.ranges
compiler.cfg.registers
kernel
namespaces
;
IN:
compiler.cfg.linear-scan.live-intervals
::
record-use
( vreg n spill-slot? -- )
vreg
vreg>live-interval
:>
live-interval
from
get
n
live-interval
ranges>>
add-range
n live-interval spill-slot?
(add-use)
vreg
rep-of
>>use-rep
drop
;