[llvm] r313998 - [Falkor] Add falkor CPU to host detection

Balaram Makam via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 22 10:46:37 PDT 2017


Author: bmakam
Date: Fri Sep 22 10:46:36 2017
New Revision: 313998

URL: http://llvm.org/viewvc/llvm-project?rev=313998&view=rev
Log:
    [Falkor] Add falkor CPU to host detection

    This returns "falkor" for Falkor CPU.

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

Modified: llvm/trunk/lib/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=313998&r1=313997&r2=313998&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Fri Sep 22 10:46:36 2017
@@ -211,6 +211,7 @@ StringRef sys::detail::getHostCPUNameFor
             .Case("0x211", "kryo")
             .Case("0x800", "cortex-a73")
             .Case("0x801", "cortex-a73")
+            .Case("0xc00", "falkor")
             .Default("generic");
 
   return "generic";

Modified: llvm/trunk/unittests/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/Host.cpp?rev=313998&r1=313997&r2=313998&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/Host.cpp (original)
+++ llvm/trunk/unittests/Support/Host.cpp Fri Sep 22 10:46:36 2017
@@ -111,6 +111,9 @@ TEST(getLinuxHostCPUName, AArch64) {
   EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x51\n"
                                               "CPU part        : 0x801"),
             "cortex-a73");
+  EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x51\n"
+                                              "CPU part        : 0xc00"),
+            "falkor");
 
   // MSM8992/4 weirdness
   StringRef MSM8992ProcCpuInfo = R"(




More information about the llvm-commits mailing list