Handbook
Glossary
insn>imm-insn ( insn op swap? -- new-insn )
Vocabulary
compiler
.
cfg
.
value-numbering
.
math
Inputs
insn
an
object
op
an
object
swap?
an
object
Outputs
new-insn
an
object
Definition
USING:
accessors
compiler.cfg.instructions
compiler.cfg.value-numbering.rewrite
kernel
;
IN:
compiler.cfg.value-numbering.math
:
insn>imm-insn
( insn op swap? -- new-insn )
swap
[
[
[
dst>>
]
[
src1>>
]
[
src2>>
]
tri
]
dip
[
swap
]
when
vreg>integer
]
dip
new-insn
;
inline