1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[Falkor] Add falkor CPU to host detection

This returns "falkor" for Falkor CPU.

llvm-svn: 313998
This commit is contained in:
Balaram Makam 2017-09-22 17:46:36 +00:00
parent 651f6baa77
commit 93c1975dde
2 changed files with 4 additions and 0 deletions

View File

@ -211,6 +211,7 @@ StringRef sys::detail::getHostCPUNameForARM(
.Case("0x211", "kryo")
.Case("0x800", "cortex-a73")
.Case("0x801", "cortex-a73")
.Case("0xc00", "falkor")
.Default("generic");
return "generic";

View File

@ -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"(