summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPreston Gurd <preston.gurd@intel.com>2012-07-19 19:05:37 +0000
committerPreston Gurd <preston.gurd@intel.com>2012-07-19 19:05:37 +0000
commit8e082688a16ccbe0d39b26ab8d3fd7d4004f4c01 (patch)
tree5e6b9617508e682432e989282dbf6756252d9d15
parentf2ea70ae4a50d55d502da35ddc25f9f5890dca92 (diff)
downloadbcm5719-llvm-8e082688a16ccbe0d39b26ab8d3fd7d4004f4c01.tar.gz
bcm5719-llvm-8e082688a16ccbe0d39b26ab8d3fd7d4004f4c01.zip
Adds the family codes for the Midview Atom processors so that the
Atom buildbot will auto-detect Atom. llvm-svn: 160521
-rw-r--r--llvm/lib/Support/Host.cpp5
-rw-r--r--llvm/lib/Target/X86/X86Subtarget.cpp2
2 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index 367ab6bfd4e..9a2c39d72e3 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -249,9 +249,8 @@ std::string sys::getHostCPUName() {
case 28: // Most 45 nm Intel Atom processors
case 38: // 45 nm Atom Lincroft
case 39: // 32 nm Atom Medfield
- // re-enable when buildbot will pass all atom tests
- //case 53: // 32 nm Atom Midview
- //case 54: // 32 nm Atom Midview
+ case 53: // 32 nm Atom Midview
+ case 54: // 32 nm Atom Midview
return "atom";
default: return (Em64T) ? "x86-64" : "i686";
diff --git a/llvm/lib/Target/X86/X86Subtarget.cpp b/llvm/lib/Target/X86/X86Subtarget.cpp
index 6ceacc898e2..e6e9c56114f 100644
--- a/llvm/lib/Target/X86/X86Subtarget.cpp
+++ b/llvm/lib/Target/X86/X86Subtarget.cpp
@@ -255,7 +255,7 @@ void X86Subtarget::AutoDetectSubtargetFeatures() {
// Set processor type. Currently only Atom is detected.
if (Family == 6 &&
(Model == 28 || Model == 38 || Model == 39
- /*|| Model == 53 || Model == 54*/)) {
+ || Model == 53 || Model == 54)) {
X86ProcFamily = IntelAtom;
UseLeaForSP = true;
OpenPOWER on IntegriCloud