<div dir="ltr">Thank you Mr. Tim. I was wondering if you can tell me in which file 'get()' is defined. I am having trouble using this function. For example if I write 'get(AArch64::LDRXui)' then there is an error generated which says: use of undeclared identifier 'get'. Thanks again !!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 3, 2014 at 9:56 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>
On 3 October 2014 13:24, sachin arora <<a href="mailto:sachin345678@gmail.com">sachin345678@gmail.com</a>> wrote:<br>
> Thank you Mr. Tim. Is "AArch64" a namespace? Because when I tried<br>
> "X86::MOV", it gave me an error saying that first define X86 namespace.<br>
> Sorry if I sound stupid but I am new to LLVM. Thank you again.<br>
<br>
</span>Yes, AArch64 is the namespace. X86 should work too. There are 2<br>
possible issues: most simply, you need to include X86InstrInfo.h<br>
directly or indirectly for these enumerators to be defined; if that's<br>
not it, you're probably getting an error because X86::MOV doesn't<br>
exist as a single opcode.<br>
<br>
LLVM has many different MOV instructions to model x86's different<br>
addressing modes, and you're going to have to find out which ones you<br>
need to deal with by looking at their definitions in the .td files.<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>