diff options
Diffstat (limited to 'llvm/lib/TargetParser/Host.cpp')
| -rw-r--r-- | llvm/lib/TargetParser/Host.cpp | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/llvm/lib/TargetParser/Host.cpp b/llvm/lib/TargetParser/Host.cpp index cd5a678d161b..45b4cafc9959 100644 --- a/llvm/lib/TargetParser/Host.cpp +++ b/llvm/lib/TargetParser/Host.cpp @@ -280,8 +280,9 @@ StringRef sys::detail::getHostCPUNameForARM(StringRef ProcCpuinfoContent) { if (Implementer == "0x46") { // Fujitsu Ltd. return StringSwitch<const char *>(Part) - .Case("0x001", "a64fx") - .Default("generic"); + .Case("0x001", "a64fx") + .Case("0x003", "fujitsu-monaka") + .Default("generic"); } if (Implementer == "0x4e") { // NVIDIA Corporation @@ -346,6 +347,29 @@ StringRef sys::detail::getHostCPUNameForARM(StringRef ProcCpuinfoContent) { } } + if (Implementer == "0x61") { // Apple + return StringSwitch<const char *>(Part) + .Case("0x020", "apple-m1") + .Case("0x021", "apple-m1") + .Case("0x022", "apple-m1") + .Case("0x023", "apple-m1") + .Case("0x024", "apple-m1") + .Case("0x025", "apple-m1") + .Case("0x028", "apple-m1") + .Case("0x029", "apple-m1") + .Case("0x030", "apple-m2") + .Case("0x031", "apple-m2") + .Case("0x032", "apple-m2") + .Case("0x033", "apple-m2") + .Case("0x034", "apple-m2") + .Case("0x035", "apple-m2") + .Case("0x038", "apple-m2") + .Case("0x039", "apple-m2") + .Case("0x049", "apple-m3") + .Case("0x048", "apple-m3") + .Default("generic"); + } + if (Implementer == "0x63") { // Arm China. return StringSwitch<const char *>(Part) .Case("0x132", "star-mc1") |
