[cfe-dev] [PATCH] adding flag for generating va_arg instructions

David Lazar lazar6 at illinois.edu
Tue Apr 17 19:16:35 PDT 2012

This patch is a minor change which adds a flag to generate LLVM's
va_arg instruction instead of target-specific instructions for
handling variadic arguments. The flag is called -fuse-llvm-variadics,
but feel free to pick a better name :-). By default, this flag is
disabled, which preserves the existing behavior.

This functionality is useful for Clang users who want to do program
analysis in LLVM in a platform-independent way. Currently, there is no
way to disable the platform-specific instructions. We needed this
functionality for our research and we are aware of other groups who
want this as well.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: va_arg-flag.patch
Type: application/octet-stream
Size: 4193 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120417/7203685a/attachment.obj>

More information about the cfe-dev mailing list