From 79bbe855cd3443bc646b2aedb2973c9968ca3b7f Mon Sep 17 00:00:00 2001 From: Preston Gurd Date: Wed, 2 May 2012 21:38:46 +0000 Subject: [PATCH] Change the Intel Atom detection code to recognize Lincroft and Medfield. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156025 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Host.cpp | 5 +++-- lib/Target/X86/X86Subtarget.cpp | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp index a5e0cb061c1..6d42780cc28 100644 --- a/lib/Support/Host.cpp +++ b/lib/Support/Host.cpp @@ -234,8 +234,9 @@ std::string sys::getHostCPUName() { case 58: return "core-avx-i"; - case 28: // Intel Atom processor. All processors are manufactured using - // the 45 nm process + case 28: // Most 45 nm Intel Atom processors + case 38: // 45 nm Atom Lincroft + case 39: // 32 nm Atom Medfield return "atom"; default: return "i686"; diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index 2ec277a2fab..7970268b2da 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/lib/Target/X86/X86Subtarget.cpp @@ -253,7 +253,8 @@ void X86Subtarget::AutoDetectSubtargetFeatures() { } // Set processor type. Currently only Atom is detected. - if (Family == 6 && Model == 28) { + if (Family == 6 && + (Model == 28 || Model == 38 || Model == 39)) { X86ProcFamily = IntelAtom; UseLeaForSP = true;