Handbook
Glossary
compute-insn-defs ( bb insn -- )
Vocabulary
compiler
.
cfg
.
ssa
.
construction
.
private
Inputs
bb
an
object
insn
an
object
Outputs
None
Definition
IN:
compiler.cfg.ssa.construction.private
GENERIC:
compute-insn-defs
( bb insn -- )
Methods
USING:
compiler.cfg.instructions
compiler.cfg.ssa.construction.private
kernel
;
M:
insn
compute-insn-defs
2drop
;
USING:
assocs
compiler.cfg.def-use
compiler.cfg.instructions
compiler.cfg.ssa.construction.private
kernel
math
namespaces
sequences
sets
;
M:
vreg-insn
compute-insn-defs
defs-vregs
[
defs
get
[
adjoin-at
]
[
drop
]
[
at
cardinality
1
>
]
2tri
[
defs-multi
get
adjoin
]
[
drop
]
if
]
with
each
;