Displaying 1 result from an estimated 1 matches for "bvimm".
Did you mean:
bmm
2011 Dec 16
2
[LLVMdev] Vector immediates in tablegen w/o build_vector?
...cause of the build_vector opcode.
So, what I am trying to figure out, how do I get (build_vector (i16 imm:$val)) to be convert to v4i16 immediate directly?
I've tried pattern fragments, but I can't seem to get that to work correctly.
I tried this:
def v4i16imm : Operand<v4i16>;
def bvimm : PatFrag<(ops node:$val), (build_vector node:$val)>;
def _v4i16 : ILFormat<IL_OP_MOV, (outs GPRV4I16:$dst),
(ins v4i16imm:$val),
asm, [(set GPRV4I16:$dst, (v4i16 (bvimm imm:$val)))]>;
Any idea? Basically I am trying to get vector immediates to work in tablegen patterns.
T...