Handbook
Glossary
rewrite-gather-vector-4 ( insn -- insn/f )
Vocabulary
compiler
.
cfg
.
gvn
.
simd
Inputs
insn
an
object
Outputs
insn/f
an
object
Definition
USING:
accessors
combinators
compiler.cfg.gvn.graph
compiler.cfg.gvn.rewrite
generalizations
kernel
;
IN:
compiler.cfg.gvn.simd
:
rewrite-gather-vector-4
( insn -- insn/f )
dup
{
[
src1>>
]
[
src2>>
]
[
src3>>
]
[
src4>>
]
}
cleave
[
vreg>insn
]
4
napply
{
{
[
4dup
[
literal-insn?
]
4
napply
and
and
and
]
[
fold-gather-vector-4
]
}
[
5drop
f
]
}
cond
;