<div dir="ltr"><div>Thank you Mr. Tim. Is "AArch64" a namespace? Because when I tried "X86::MOV", it gave me an error saying that first define X86 namespace. Sorry if I sound stupid but I am new to LLVM. Thank you again.<br><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 2, 2014 at 8:16 PM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Sachin,<br>
<span class=""><br>
>          int op = mi->getOpcode();<br>
<br>
</span>This is a target-specific opcode, and corresponds to one of the values<br>
defined in (from a CMake build directory)<br>
lib/Target/XYZ/XYZGenInstrInfo.inc.<br>
<br>
The easiest way to find out which is actually to use<br>
MachineInstr::dump (and/or "llc -debug" from the command-line to print<br>
it out automatically); if it prints something like (to pick a<br>
completely random example from AArch64):<br>
<br>
 %X1<def> = LDRXui <fi#3>, 0; mem:LD8[%result] dbg:blockstret.c:20:<br>
<br>
Then you'd want to compare "op" against "AArch64::LDRXui"<br>
<br>
Cheers.<br>
<span class="HOEnZb"><font color="#888888"><br>
Tim.<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Regards,<div>Sachin</div></div>
</div>