[llvm-dev] Can I differentiate an imm with an imm used in memory offset in MI pass?

Ryan Taylor via llvm-dev llvm-dev at lists.llvm.org
Thu Sep 21 13:27:52 PDT 2017

So I'd like to be able to tell the difference between an imm and an imm
used in mem offset in MachineInstr.

Or, it would be nice to tell the difference between src and dst operands.

I must be missing something trivial?

For example,

int *b, a;

b[10] = a + 2; // is there any marker/flag between 2 and 10 to tell the

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170921/9f10a4b1/attachment.html>

More information about the llvm-dev mailing list