[llvm] r300003 - Remove xgene1 from host detection
Yi Kong via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 11 15:39:55 PDT 2017
Author: kongyi
Date: Tue Apr 11 17:39:55 2017
New Revision: 300003
URL: http://llvm.org/viewvc/llvm-project?rev=300003&view=rev
Log:
Remove xgene1 from host detection
This is not a supported mcpu tuning option. We should treat it as
"generic" variant.
Also, add record for cortex-a35.
Modified:
llvm/trunk/lib/Support/Host.cpp
Modified: llvm/trunk/lib/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=300003&r1=300002&r2=300003&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Tue Apr 11 17:39:55 2017
@@ -189,6 +189,7 @@ StringRef sys::detail::getHostCPUNameFor
.Case("0xc20", "cortex-m0")
.Case("0xc23", "cortex-m3")
.Case("0xc24", "cortex-m4")
+ .Case("0xd04", "cortex-a35")
.Case("0xd03", "cortex-a53")
.Case("0xd07", "cortex-a57")
.Case("0xd08", "cortex-a72")
@@ -196,17 +197,6 @@ StringRef sys::detail::getHostCPUNameFor
.Default("generic");
}
- if (Implementer == "0x50") // Applied Micro Circuits Corporation (APM).
- // Look for the CPU part line.
- for (unsigned I = 0, E = Lines.size(); I != E; ++I)
- if (Lines[I].startswith("CPU part"))
- // The CPU part is a 3 digit hexadecimal number with a 0x prefix. The
- // values correspond to the "Part number" in the CP15/c0 register. The
- // contents are specified in the various processor manuals.
- return StringSwitch<const char *>(Lines[I].substr(8).ltrim("\t :"))
- .Case("0x000", "xgene1")
- .Default("generic");
-
if (Implementer == "0x51") // Qualcomm Technologies, Inc.
// Look for the CPU part line.
for (unsigned I = 0, E = Lines.size(); I != E; ++I)
More information about the llvm-commits
mailing list