Handbook
Glossary
compute-insn-costs ( insn -- )
Vocabulary
compiler
.
cfg
.
representations
.
selection
Inputs
insn
an
object
Outputs
None
Definition
IN:
compiler.cfg.representations.selection
GENERIC:
compute-insn-costs
( insn -- )
Methods
USING:
compiler.cfg.instructions
compiler.cfg.representations.selection
kernel
;
M:
insn
compute-insn-costs
drop
;
USING:
compiler.cfg.instructions
compiler.cfg.representations.preferred
compiler.cfg.representations.selection
kernel
;
M:
vreg-insn
compute-insn-costs
dup
peephole-optimizable?
2 5
?
[
increase-costs
]
curry
each-rep
;