[LLVMdev] Need guidance regarding MachineFunctionPass
Tim Northover
t.p.northover at gmail.com
Fri Oct 3 19:56:04 PDT 2014
Hi Sachin,
On 3 October 2014 13:24, sachin arora <sachin345678 at gmail.com> wrote:
> 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.
Yes, AArch64 is the namespace. X86 should work too. There are 2
possible issues: most simply, you need to include X86InstrInfo.h
directly or indirectly for these enumerators to be defined; if that's
not it, you're probably getting an error because X86::MOV doesn't
exist as a single opcode.
LLVM has many different MOV instructions to model x86's different
addressing modes, and you're going to have to find out which ones you
need to deal with by looking at their definitions in the .td files.
Cheers.
Tim.
More information about the llvm-dev
mailing list