aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorJacob Baungard Hansen <jacob.hansen@esa.int>2016-07-04 08:56:08 +0000
committerJacob Baungard Hansen <jacob.hansen@esa.int>2016-07-04 08:56:08 +0000
commit1bf12828bef1fdb992929978afda257c43fa658e (patch)
treee64bf7ca60e2e2d58235c74686f9c839c1a4cedd /clang/lib/Driver/Tools.cpp
parent84c9f9919a1b0e7a80af6854ec3507770ae854f7 (diff)
downloadllvm-1bf12828bef1fdb992929978afda257c43fa658e.zip
llvm-1bf12828bef1fdb992929978afda257c43fa658e.tar.gz
llvm-1bf12828bef1fdb992929978afda257c43fa658e.tar.bz2
[Sparc] Allow LEON cpu models to be selected with -mcpu
Summary: This change exposes the recently added LEON CPUs (D19359) in the LLVM Sparc backend to Clang, allowing the cpu's to be selected using the -mcpu flag. Reviewers: jyknight, lero_chris Subscribers: jyknight, cfe-commits Differential Revision: http://reviews.llvm.org/D21683 llvm-svn: 274487
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 6d3aaf1..2425619 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -96,6 +96,14 @@ static const char *getSparcAsmModeForCPU(StringRef Name,
.Case("niagara2", "-Av8plusb")
.Case("niagara3", "-Av8plusd")
.Case("niagara4", "-Av8plusd")
+ .Case("leon2", "-Av8")
+ .Case("at697e", "-Av8")
+ .Case("at697f", "-Av8")
+ .Case("leon3", "-Av8")
+ .Case("ut699", "-Av8")
+ .Case("gr712rc", "-Av8")
+ .Case("leon4", "-Av8")
+ .Case("gr740", "-Av8")
.Default("-Av8");
}
}