[llvm-dev] [X86] MoveImm flag for instructions

S. Bharadwaj Yadavalli via llvm-dev llvm-dev at lists.llvm.org
Fri Feb 9 11:45:23 PST 2018


Hi,

I had (naively?) expected that the instruction to move immediate to
register or memory (such as MOV32mi, MOV32ri, MOV64mi32, MOV64ri,
MOV64ri32) would be marked with the flag MCID::MovImm via the
X86InstrInfo.td (and hence in the generated X86GenInstrInfo.inc).

I do not see that to be the case.

Can someone please tell me if my expectation is flawed? Is there a
better/different way to determine to test for move immediate to
register/memory instruction on X86 other that the existing interface
MCID::isMoveImmediate()?

Thanks,

Bharadwaj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180209/199e6a54/attachment.html>


More information about the llvm-dev mailing list