[LLVMdev] Bug in LEA16r (X86InstrArithmetic.td) ??

Tim Northover t.p.northover at gmail.com
Tue Jun 24 06:32:54 PDT 2014


Hi Jun,

> yes, i think this is a good idea. but then how can i modify LEA16r above to
> eliminate "dword ptr" part?

I can't see an existing X86MemOperand with this property, so you'll
probably have to create a new one near the top of X86InstrInfo.td
(~line 332) and then use that. The PrintMethod should be reasonably
easy to implement.

Cheers.

Tim.



More information about the llvm-dev mailing list