[PATCH] D37724: [ARM] Add more CPUs to host detection

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 14:49:31 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL313200: [ARM] Add more CPUs to host detection (authored by efriedma).

Changed prior to commit:
  https://reviews.llvm.org/D37724?vs=114735&id=115127#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D37724

Files:
  llvm/trunk/lib/Support/Host.cpp
  llvm/trunk/unittests/Support/Host.cpp


Index: llvm/trunk/lib/Support/Host.cpp
===================================================================
--- llvm/trunk/lib/Support/Host.cpp
+++ llvm/trunk/lib/Support/Host.cpp
@@ -208,6 +208,9 @@
             .Case("0x06f", "krait") // APQ8064
             .Case("0x201", "kryo")
             .Case("0x205", "kryo")
+            .Case("0x211", "kryo")
+            .Case("0x800", "cortex-a73")
+            .Case("0x801", "cortex-a73")
             .Default("generic");
 
   return "generic";
Index: llvm/trunk/unittests/Support/Host.cpp
===================================================================
--- llvm/trunk/unittests/Support/Host.cpp
+++ llvm/trunk/unittests/Support/Host.cpp
@@ -105,6 +105,12 @@
   EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x51\n"
                                               "CPU part        : 0x201"),
             "kryo");
+  EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x51\n"
+                                              "CPU part        : 0x800"),
+            "cortex-a73");
+  EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x51\n"
+                                              "CPU part        : 0x801"),
+            "cortex-a73");
 
   // MSM8992/4 weirdness
   StringRef MSM8992ProcCpuInfo = R"(


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37724.115127.patch
Type: text/x-patch
Size: 1305 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170913/5a875ba4/attachment.bin>


More information about the llvm-commits mailing list