[LLVMdev] Inline Assembly: Memory constraints with offsets

Daniel Sanders Daniel.Sanders at imgtec.com
Tue Mar 3 08:23:26 PST 2015

> -----Original Message-----
> From: Tim Northover [mailto:t.p.northover at gmail.com]
> Sent: 03 March 2015 14:42
> To: Daniel Sanders
> Cc: LLVM Developers Mailing List (llvmdev at cs.uiuc.edu)
> Subject: Re: [LLVMdev] Inline Assembly: Memory constraints with offsets
> > Does anyone have any suggestions as to how I can get the offset inside the
> > inline assembly?
> I think x86 has the same capability with a simple "m" constraint.
> Looks like it's based on the "SelectInlineAsmMemoryOperand" function.
> Cheers.
> Tim.

Thanks. I came across SelectInlineAsmMemoryOperand but the caller I found is passing a hardcoded 'm' into it. I'll start by seeing if the 'o' and 'v' paths really trigger for X86.

More information about the llvm-dev mailing list