[LLVMdev] Syntax help about TableGen

Tim Northover t.p.northover at gmail.com
Tue Apr 1 23:59:29 PDT 2014


Hi Ke,

>         (ins (reg:$src0), (type:$src1), (reg:$src2), (reg:$src3)),

I'd have put the problem here. Using a ValueType in the pattern later
is fine, but members of (ins) and (outs) lists have to be instances of
Operand or a register class.

If a full 32 or 64-bit immediate is permitted, i32imm/i64imm should be
OK, otherwise you may need to create your own version.

Cheers.

Tim.



More information about the llvm-dev mailing list