[llvm-commits] [llvm] r156025 - in /llvm/trunk/lib: Support/Host.cpp Target/X86/X86Subtarget.cpp

Preston Gurd preston.gurd at intel.com
Wed May 2 14:38:47 PDT 2012


Author: pgurd
Date: Wed May  2 16:38:46 2012
New Revision: 156025

URL: http://llvm.org/viewvc/llvm-project?rev=156025&view=rev
Log:
Change the Intel Atom detection code to recognize
Lincroft and Medfield.


Modified:
    llvm/trunk/lib/Support/Host.cpp
    llvm/trunk/lib/Target/X86/X86Subtarget.cpp

Modified: llvm/trunk/lib/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=156025&r1=156024&r2=156025&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Wed May  2 16:38:46 2012
@@ -234,8 +234,9 @@
       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";

Modified: llvm/trunk/lib/Target/X86/X86Subtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Subtarget.cpp?rev=156025&r1=156024&r2=156025&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86Subtarget.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86Subtarget.cpp Wed May  2 16:38:46 2012
@@ -253,7 +253,8 @@
     }
 
     // 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;





More information about the llvm-commits mailing list