[llvm] r361422 - [X86] Add more icelake model numbers to getHostCPUName.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed May 22 12:51:36 PDT 2019


Author: ctopper
Date: Wed May 22 12:51:35 2019
New Revision: 361422

URL: http://llvm.org/viewvc/llvm-project?rev=361422&view=rev
Log:
[X86] Add more icelake model numbers to getHostCPUName.

Using model numbers found in Table 2-1 of the May 2019 version
of the Intel Software Developer's Manual Volume 4.

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=361422&r1=361421&r2=361422&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Wed May 22 12:51:35 2019
@@ -682,11 +682,19 @@ getIntelProcessorTypeAndSubtype(unsigned
       break;
 
     // Icelake:
+    case 0x7d:
     case 0x7e:
       *Type = X86::INTEL_COREI7;
       *Subtype = X86::INTEL_COREI7_ICELAKE_CLIENT; // "icelake-client"
       break;
 
+    // Icelake Xeon:
+    case 0x6a:
+    case 0x6c:
+      *Type = X86::INTEL_COREI7;
+      *Subtype = X86::INTEL_COREI7_ICELAKE_SERVER; // "icelake-server"
+      break;
+
     case 0x1c: // Most 45 nm Intel Atom processors
     case 0x26: // 45 nm Atom Lincroft
     case 0x27: // 32 nm Atom Medfield




More information about the llvm-commits mailing list