[LLVMdev] [PATCH] LangRef: va_arg doesn't work on X86_64; update example

Sean Silva chisophugis at gmail.com
Thu Oct 30 14:11:09 PDT 2014

On Wed, Oct 29, 2014 at 11:21 AM, Tim Northover <t.p.northover at gmail.com>

> Hi Ramkumar,
> On 28 October 2014 18:32, Ramkumar Ramachandra <artagnon at gmail.com> wrote:
> > Provide a full-fledged example of working variable arguments on X86_64,
> > since it's easily the most popular platform.
> I don't think this is a good idea. The section is about all the
> varargs intrinsics and instructions, so the example should use all of
> them even if it does have to use a target other than x86_64.
> Also, a single example of x86's va_arg handling isn't going to be very
> enlightening for anyone: either you know the ABI and it's just the
> "obvious" LLVM IR, or you don't and you won't have a clue what's going
> on. It's a rather complex and initially confusing topic, and would
> probably deserve its own article if it's going to be documented.

I agree.

-- Sean Silva

> Cheers.
> Tim.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141030/2c70c9a9/attachment.html>

More information about the llvm-dev mailing list