summaryrefslogtreecommitdiff
path: root/tools/llvmc/plugins
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-12-04 06:38:28 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-12-04 06:38:28 +0000
commit3ab4883053e30e1be072607dc941ff55c32c5080 (patch)
treed8274526fa306752eee7f4b4d003db6168248a55 /tools/llvmc/plugins
parent44a7a380aa9fbb303f57f4f8269062b7b56be980 (diff)
downloadllvm-3ab4883053e30e1be072607dc941ff55c32c5080.tar.gz
llvm-3ab4883053e30e1be072607dc941ff55c32c5080.tar.bz2
llvm-3ab4883053e30e1be072607dc941ff55c32c5080.tar.xz
Support -march/-mtune/-mcpu.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc/plugins')
-rw-r--r--tools/llvmc/plugins/Base/Base.td.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/llvmc/plugins/Base/Base.td.in b/tools/llvmc/plugins/Base/Base.td.in
index 125e95c05e..84eb770fbb 100644
--- a/tools/llvmc/plugins/Base/Base.td.in
+++ b/tools/llvmc/plugins/Base/Base.td.in
@@ -44,6 +44,12 @@ def OptList : OptionList<[
(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 @@ class llvm_gcc_based <string cmd_prefix, string in_lang, string E_ext> : Tool<
(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 @@ def llc : Tool<
(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,")))
]>;