diff options
author | azhan92 <alisonxzhang@gmail.com> | 2024-07-23 09:49:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-23 09:49:41 -0400 |
commit | 1df4d866cca51eeab8f012a97cc50957b45971fe (patch) | |
tree | 570b5d401729253d8bce7924e46d05a096e25a9c /llvm/lib/TargetParser/Host.cpp | |
parent | 1ebfc81a91194c000ac70b4ea53891cc956aa6eb (diff) | |
download | llvm-1df4d866cca51eeab8f012a97cc50957b45971fe.zip llvm-1df4d866cca51eeab8f012a97cc50957b45971fe.tar.gz llvm-1df4d866cca51eeab8f012a97cc50957b45971fe.tar.bz2 |
[PowerPC] Add support for -mcpu=pwr11 / -mtune=pwr11 (#99511)
This PR adds support for -mcpu=pwr11/power11 and -mtune=pwr11/power11 in
clang and llvm.
Diffstat (limited to 'llvm/lib/TargetParser/Host.cpp')
-rw-r--r-- | llvm/lib/TargetParser/Host.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/TargetParser/Host.cpp b/llvm/lib/TargetParser/Host.cpp index fda085f..7e637cb 100644 --- a/llvm/lib/TargetParser/Host.cpp +++ b/llvm/lib/TargetParser/Host.cpp @@ -150,6 +150,7 @@ StringRef sys::detail::getHostCPUNameForPowerPC(StringRef ProcCpuinfoContent) { .Case("POWER8NVL", "pwr8") .Case("POWER9", "pwr9") .Case("POWER10", "pwr10") + .Case("POWER11", "pwr11") // FIXME: If we get a simulator or machine with the capabilities of // mcpu=future, we should revisit this and add the name reported by the // simulator/machine. @@ -1549,6 +1550,12 @@ StringRef sys::getHostCPUName() { case 0x40000: #endif return "pwr10"; +#ifdef POWER_11 + case POWER_11: +#else + case 0x80000: +#endif + return "pwr11"; default: return "generic"; } |