Handbook
Glossary
compute-defs ( cfg -- )
Vocabulary
compiler
.
cfg
.
def-use
Inputs
cfg
a
cfg
Outputs
None
Word description
Computes a mapping from vregs to
basic-block
instances in which they are defined. The data is assigned to the
defs
dynamic variable.
Definition
USING:
compiler.cfg
compiler.cfg.rpo
kernel
namespaces
sequences
;
IN:
compiler.cfg.def-use
:
compute-defs
( cfg -- )
H{
}
clone
[
'[
[
basic-block
get
]
dip
[
_
set-def-of
]
with
each
]
simple-analysis
]
keep
defs
set
;