[llvm-commits] [PATCH] LTO code generator options

Viktor Kutuzov vkutuzov at accesssoftek.com
Thu Nov 5 16:14:34 PST 2009


Hello everyone,

Please find the patch attached.

This patch continues the #85419 - Fix to pass options from Gold plugin to LTO codegen.
It lets user to specify the target triple, cpu and specific platform attribute (features) for LTO code generator.
The following options has been added (names match the llc option names):

-mtriple - to set the target triple;
-mcpu - to set the target cpu;
-mattr - to set additional platform-specific features;

If speciffied, these options override all implicit settting.

I have also added the -preserve option to keep all intermediate files in place for debug and troubleshooting purposes and did a 
little code cleaning around my changes to comply with the LLVM coding style policy.

Best regards,
Viktor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-lto-codegen-target_override.diff
Type: application/octet-stream
Size: 27064 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20091105/3389af63/attachment.obj>


More information about the llvm-commits mailing list