diff options
author | Yi Kong <yikong@google.com> | 2019-06-11 00:05:36 +0000 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2019-06-11 00:05:36 +0000 |
commit | 432f48fcd4c0c6c26f44965aab12abbd25b5bfea (patch) | |
tree | cfc703ed3ce6afb25fae46009372c24c800f54c3 /llvm/lib/Support/Host.cpp | |
parent | 4d89462a1cc2f2bb101989e87b0ca59ff99e7490 (diff) | |
download | bcm5719-llvm-432f48fcd4c0c6c26f44965aab12abbd25b5bfea.tar.gz bcm5719-llvm-432f48fcd4c0c6c26f44965aab12abbd25b5bfea.zip |
[AArch64] Add more CPUs to host detection
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
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
-rw-r--r-- | llvm/lib/Support/Host.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index df2d4dcca2a..947e9468c26 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -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"); |