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

Viktor Kutuzov vkutuzov at accesssoftek.com
Tue Nov 10 11:18:45 PST 2009


Is this Ok to submit?

Best regards,
Viktor
 
----- Original Message ----- 
From: "Viktor Kutuzov" <vkutuzov at accesssoftek.com>
To: "Commit Messages and Patches for LLVM" <llvm-commits at cs.uiuc.edu>
Sent: Thursday, November 05, 2009 4:14 PM
Subject: [llvm-commits] [PATCH] LTO code generator options


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




More information about the llvm-commits mailing list