]> granicus.if.org Git - llvm/commitdiff
[AArch64] Add more CPUs to host detection
authorYi Kong <yikong@google.com>
Tue, 11 Jun 2019 00:05:36 +0000 (00:05 +0000)
committerYi Kong <yikong@google.com>
Tue, 11 Jun 2019 00:05:36 +0000 (00:05 +0000)
Returns "cortex-a73" for 3rd and 4th gen Kryo; not precisely correct,
but close enough.

Differential Revision: https://reviews.llvm.org/D63099

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363013 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Host.cpp

index df2d4dcca2ad2b1f9976af63ddaa93387aa5688c..947e9468c26d673556c8c2ce43f982f17ef82172 100644 (file)
@@ -192,6 +192,8 @@ StringRef sys::detail::getHostCPUNameForARM(StringRef ProcCpuinfoContent) {
             .Case("0xd07", "cortex-a57")
             .Case("0xd08", "cortex-a72")
             .Case("0xd09", "cortex-a73")
+            .Case("0xd0a", "cortex-a75")
+            .Case("0xd0b", "cortex-a76")
             .Default("generic");
   }
 
@@ -235,6 +237,10 @@ StringRef sys::detail::getHostCPUNameForARM(StringRef ProcCpuinfoContent) {
             .Case("0x211", "kryo")
             .Case("0x800", "cortex-a73")
             .Case("0x801", "cortex-a73")
+            .Case("0x802", "cortex-a73")
+            .Case("0x803", "cortex-a73")
+            .Case("0x804", "cortex-a73")
+            .Case("0x805", "cortex-a73")
             .Case("0xc00", "falkor")
             .Case("0xc01", "saphira")
             .Default("generic");