[LLVMdev] splat instruction
Jochen Wilhelmy
jochen.wilhelmy at googlemail.com
Thu Apr 5 05:50:33 PDT 2012
Hi!
as highlevel languages (like opencl) support operations with a vector
on one side and a scalar on the other side (e.g. vector * scalar) it would
be convenient if llvm ir would have a splat instruction that takes
a scalar and produces a vector with all elements filled with the scalar.
i assume that i'm not the first one who has this idea so what was
the reason not to include such an instruction?
a splat instruction would also be handy to scalarize the code as much
as possible before outputting it again to a highlevel language.
-jochen
More information about the llvm-dev
mailing list