Hi David, I'm working on source to source transformations and instrumentation. A flag to disable 'va_arg' lowering in LLVM FEs will be very useful. Have you sent your modifications upstream to LLVM? If not, could you please share link to your public repository. Thanks, Sergey Yakoushkin On Mon, Jul 19, 2010 at 11:18 PM, David Meyer <pdox at google.com> wrote:> Neal, > > FYI, my group has added a flag to llvm-gcc for emitting the va_arg > instruction (instead of lowering in the front-end), > and we also have an implementation of the VAARG instruction for > X86-64. (which is currently not implemented in the LLVM backend). > > Both of these things will be sent upstream to LLVM soon, pending some > more testing and review. > > If you are dire need of these features now, I can point you to the > (public) repository where we have the beta versions. > > - David M
On 19 February 2011 02:42, Sergey Yakoushkin <sergey.yakoushkin at gmail.com> wrote:> I'm working on source to source transformations and instrumentation. > A flag to disable 'va_arg' lowering in LLVM FEs will be very useful.Hi, For the sake of simplicity, if types are simple, we emit va_arg directly, otherwise we do like Clang and lower it in the front-end. Would be nice to keep va_arg for the simple cases... cheers, --renato
Sergey, Here's a patch on llvm-gcc which adds a flag "-fuse-llvm-va-arg". (Note that this patch won't ever be part of llvm-gcc upstream. It will most likely be deprecated by later changes.) - pdox -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110220/f814866f/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: llvm-gcc-va-arg-2.patch Type: application/octet-stream Size: 5754 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110220/f814866f/attachment.obj>