Handbook
Glossary
compute-insns ( cfg -- )
Vocabulary
compiler
.
cfg
.
def-use
Inputs
cfg
a
cfg
Outputs
None
Word description
Computes a mapping from vregs to the instructions that define them and store the result in the
insns
variable. The
insn-of
word can then be used to access the assoc.
Definition
USING:
compiler.cfg.rpo
kernel
namespaces
sequences
;
IN:
compiler.cfg.def-use
:
compute-insns
( cfg -- )
H{
}
clone
[
[
[
dup
]
]
dip
[
set-def-of
]
curry
compose
[
each
]
curry
simple-analysis
]
keep
insns
set
;