Skip to content

Commit

Permalink
[AArch64] Add more CPUs to host detection
Browse files Browse the repository at this point in the history
Returns "cortex-a73" for 3rd and 4th gen Kryo; not precisely correct,
but close enough.

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

llvm-svn: 363013
  • Loading branch information
kongy committed Jun 11, 2019
1 parent 4d89462 commit 432f48f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions llvm/lib/Support/Host.cpp
Expand Up @@ -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");
}

Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 432f48f

Please sign in to comment.