Handbook
Glossary
memory>memory ( source destination -- )
Vocabulary
compiler
.
cfg
.
register-allocation
.
ssa
Inputs
source
an
object
destination
an
object
Outputs
None
Definition
USING:
accessors
assocs
compiler.cfg
compiler.cfg.instructions
compiler.cfg.linear-scan.allocation.state
cpu.architecture
kernel
namespaces
sequences
;
IN:
compiler.cfg.register-allocation.ssa
::
memory>memory
( source destination -- )
source
rep>>
:>
rep rep
reg-class-of
:>
reg-class reg-class
registers
get
at
first
:>
scratch reg-class
scratch-representation
:>
saved-rep saved-rep
scratch-spills
get
[
rep-size
cfg
get
stack-frame>>
[
align-spill-area
]
[
next-spill-slot
]
2bi
]
cache
:>
slot scratch saved-rep slot
##spill,
scratch rep source
reg>>
##reload,
scratch rep destination
reg>>
##spill,
scratch saved-rep slot
##reload,
;