[LLVMdev] Need guidance regarding MachineFunctionPass
sachin345678 at gmail.com
Fri Oct 3 13:24:11 PDT 2014
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.
On Thu, Oct 2, 2014 at 8:16 PM, Tim Northover <t.p.northover at gmail.com>
> Hi Sachin,
> > int op = mi->getOpcode();
> This is a target-specific opcode, and corresponds to one of the values
> defined in (from a CMake build directory)
> The easiest way to find out which is actually to use
> MachineInstr::dump (and/or "llc -debug" from the command-line to print
> it out automatically); if it prints something like (to pick a
> completely random example from AArch64):
> %X1<def> = LDRXui <fi#3>, 0; mem:LD8[%result] dbg:blockstret.c:20:
> Then you'd want to compare "op" against "AArch64::LDRXui"
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev