[LLVMdev] Encoding instructions with inconsistent formats
Tim Northover
t.p.northover at gmail.com
Sat Jan 31 15:00:22 PST 2015
Hi Dylan,
> I am able to use it in the place of PTRREGS in the definition of the LD
> instruction, but if I use it in an instruction matching pattern, compilation
> fails with the error "Unknown leaf kind: LDSTPtrReg:i16:$ptrreg".
I think it should work if you just use "i16:$ptrreg" in the pattern
rather than specifying the new operand type: "(set GPR8:$reg, (load
i16:$ptrreg))".
Cheers.
Tim.
More information about the llvm-dev
mailing list