Displaying 4 results from an estimated 4 matches for "moveimm".
2018 Feb 09
0
[X86] MoveImm flag for instructions
...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
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML atta...
2018 Feb 09
0
[X86] MoveImm flag for instructions
I think even if we did use it, MoveImmediate is intended for instructions
that move an immediate into a register rather than into memory. It's
supposed to indicate instructions that can be folded with the user of the
register by changing the user to an immediate instruction. And it wouldn't
be set on an instruction like "ad...
2018 Feb 09
2
[X86] MoveImm flag for instructions
...fo.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>
2018 Feb 09
2
[X86] MoveImm flag for instructions
...instruction in a tool that I am working on.
For example, I'd like to distinguish between memop instructions involving
immediate vs register. While it appears that I would be able to accomplish
this by rummaging through the instruction operands, a combination of the
flag(s) MayLoad/MayStore and MoveImm seemed attractive/clean/efficient(?),
if the instruction description did indeed use the flags.
Hence the question.
Thanks,
Bharadwaj
On Fri, Feb 9, 2018 at 12:17 PM, Craig Topper <craig.topper at gmail.com>
wrote:
> That flag is specifically used by the foldImmediate optimization in t...