Handbook
Glossary
split-interval ( live-interval n -- before after )
Vocabulary
compiler
.
cfg
.
linear-scan
.
allocation
.
splitting
Inputs
live-interval
a
live-interval-state
n
an
integer
Outputs
before
a
live-interval-state
after
a
live-interval-state
Word description
Splits the interval in two around the flow point 'n'.
Definition
USING:
accessors
compiler.cfg.linear-scan.ranges
kernel
;
IN:
compiler.cfg.linear-scan.allocation.splitting
::
split-interval
( live-interval n -- before after )
live-interval n
check-split
live-interval
clone
:>
before live-interval
clone
:>
after
live-interval
uses>>
n
split-uses
before after
[
uses<<
]
bi-curry@
bi*
live-interval
ranges>>
n
split-ranges
before after
[
ranges<<
]
bi-curry@
bi*
before
split-before
after
split-after
;