[LLVMdev] Need Help Understanding Operands in X86 MachineFunctionPass
criswell at illinois.edu
Wed Sep 12 09:15:55 PDT 2012
On 9/11/12 1:52 PM, Gurd, Preston wrote:
> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of John Criswell
> Sent: Tuesday, September 11, 2012 1:42 PM
> To: Steve Checkoway
> Cc: LLVMdev at cs.uiuc.edu
> Subject: Re: [LLVMdev] Need Help Understanding Operands in X86 MachineFunctionPass
>>> The code for adding the 32-bit instruction is:
>> That's surprising to me. What are all of those registers and immediates for?
> That is precisely my question. What do all of those register and immediate arguments do?
> -- John T.
> The X86 backend records a machine memory operand using a sequence of five operands, as follows:
> Base Register
> Scale Amount
> Index Register
> Address offset
> Segment register
> See lib/Target/X86/MCTargetDesc/X86BaseInfo.h.
Thanks! This is exactly the information for which I was looking.
-- John T.
More information about the llvm-dev