[llvm-commits] PATCH: llvm-gcc option to emit "va_arg" instruction

David Meyer pdox at google.com
Tue Oct 12 09:09:16 PDT 2010


Rafael,

This could be implemented at a higher level.

Rewriting the va_arg instruction at the bitcode level would be the most
powerful method, especially if you could apply opt to the target-specific
bitcode after the rewrite.

Another way would be to emit a custom va_arg implementation as the initial
SelectionDAG is being built. This would not be subject to opt, but it would
be subject to better optimization in the backend.

Perhaps I jumped the gun by implementing EmitVAArg at a low level, but I'm
not sure which of the other possible solutions are practical (or
preferable).

- David M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101012/1366b3de/attachment.html>


More information about the llvm-commits mailing list