diff options
| author | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2016-05-09 18:58:02 +0000 |
|---|---|---|
| committer | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2016-05-09 18:58:02 +0000 |
| commit | d99f21b0e6c3bac7bcf3f417f7a18f8bb4ba85b3 (patch) | |
| tree | c6afb91f01eb18e3d9fee2acb1622ec32413e5ae /clang/lib/Driver/Tools.cpp | |
| parent | 6e29baf7f529fe7e5fbd1bff1037a02ef7e25a28 (diff) | |
| download | bcm5719-llvm-d99f21b0e6c3bac7bcf3f417f7a18f8bb4ba85b3.tar.gz bcm5719-llvm-d99f21b0e6c3bac7bcf3f417f7a18f8bb4ba85b3.zip | |
[Power9] Enable -mcpu=pwr9 (-mcpu=power9) in the front end
This patch corresponds to review:
http://reviews.llvm.org/D19684
It simply adds the handling for the option and the corresponding macros.
llvm-svn: 268951
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 3b639bc975a..e45c5c55626 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -1479,6 +1479,7 @@ static std::string getPPCTargetCPU(const ArgList &Args) { .Case("power6x", "pwr6x") .Case("power7", "pwr7") .Case("power8", "pwr8") + .Case("power9", "pwr9") .Case("pwr3", "pwr3") .Case("pwr4", "pwr4") .Case("pwr5", "pwr5") @@ -1487,6 +1488,7 @@ static std::string getPPCTargetCPU(const ArgList &Args) { .Case("pwr6x", "pwr6x") .Case("pwr7", "pwr7") .Case("pwr8", "pwr8") + .Case("pwr9", "pwr9") .Case("powerpc", "ppc") .Case("powerpc64", "ppc64") .Case("powerpc64le", "ppc64le") |

