[llvm-commits] PATCH: llvm-gcc option to emit "va_arg" instruction
Chris Lattner
clattner at apple.com
Wed Oct 13 14:09:34 PDT 2010
This design point approach sounds great to me. Duncan, can you review this?
-Chris
On Oct 13, 2010, at 5:07 AM, David Meyer wrote:
> Chris,
>
> I've attached an alternative version of the patch which does not include the user-visible flag.
>
> Instead, to activate the emission of the va_arg instruction, you can modify TARGET_GIMPLIFY_VA_ARG_EXPR in the target configuration and recompile.
>
> For example, in gcc/config/i386/i386.c:
>
> #define TARGET_GIMPLIFY_VA_ARG_EXPR ix86_gimplify_va_arg
>
> Can be changed to:
>
> #define TARGET_GIMPLIFY_VA_ARG_EXPR llvm_gimplify_va_arg_expr
>
> To activate va_arg for x86 and x86-64.
>
> - David M
> <llvm-gcc-va-arg-3.patch>
More information about the llvm-commits
mailing list