[llvm-commits] [llvm] r90547 - /llvm/trunk/tools/llvmc/plugins/Base/Base.td.in
Mikhail Glushenkov
foldr at codedgers.com
Thu Dec 3 22:38:28 PST 2009
Author: foldr
Date: Fri Dec 4 00:38:28 2009
New Revision: 90547
URL: http://llvm.org/viewvc/llvm-project?rev=90547&view=rev
Log:
Support -march/-mtune/-mcpu.
Modified:
llvm/trunk/tools/llvmc/plugins/Base/Base.td.in
Modified: llvm/trunk/tools/llvmc/plugins/Base/Base.td.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc/plugins/Base/Base.td.in?rev=90547&r1=90546&r2=90547&view=diff
==============================================================================
--- llvm/trunk/tools/llvmc/plugins/Base/Base.td.in (original)
+++ llvm/trunk/tools/llvmc/plugins/Base/Base.td.in Fri Dec 4 00:38:28 2009
@@ -44,6 +44,12 @@
(help "Relocation model: dynamic-no-pic"), (hidden)),
(parameter_option "linker",
(help "Choose linker (possible values: gcc, g++)")),
+ (parameter_option "mtune",
+ (help "Target a specific CPU type"), (hidden)),
+ (parameter_option "march",
+ (help "A synonym for -mtune"), (hidden)),
+ (parameter_option "mcpu",
+ (help "A deprecated synonym for -mtune"), (hidden)),
(parameter_option "MF",
(help "Specify a file to write dependencies to"), (hidden)),
(parameter_option "MT",
@@ -119,6 +125,9 @@
(not_empty "I"), (forward "I"),
(not_empty "F"), (forward "F"),
(not_empty "D"), (forward "D"),
+ (not_empty "march"), (forward "march"),
+ (not_empty "mtune"), (forward "mtune"),
+ (not_empty "mcpu"), (forward "mcpu"),
(switch_on "O1"), (forward "O1"),
(switch_on "O2"), (forward "O2"),
(switch_on "O3"), (forward "O3"),
@@ -179,6 +188,9 @@
(switch_on "fPIC"), (append_cmd "-relocation-model=pic"),
(switch_on "mdynamic-no-pic"),
(append_cmd "-relocation-model=dynamic-no-pic"),
+ (not_empty "march"), (forward "mcpu"),
+ (not_empty "mtune"), (forward "mcpu"),
+ (not_empty "mcpu"), (forward "mcpu"),
(not_empty "Wllc,"), (unpack_values "Wllc,")))
]>;
More information about the llvm-commits
mailing list