[compiler-rt] r361175 - [X86] Add icelake-client and tremont model numbers to compiler-rt's implementation of __builtin_cpu_is.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon May 20 09:58:38 PDT 2019
Author: ctopper
Date: Mon May 20 09:58:38 2019
New Revision: 361175
URL: http://llvm.org/viewvc/llvm-project?rev=361175&view=rev
Log:
[X86] Add icelake-client and tremont model numbers to compiler-rt's implementation of __builtin_cpu_is.
Modified:
compiler-rt/trunk/lib/builtins/cpu_model.c
Modified: compiler-rt/trunk/lib/builtins/cpu_model.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/cpu_model.c?rev=361175&r1=361174&r2=361175&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/cpu_model.c (original)
+++ compiler-rt/trunk/lib/builtins/cpu_model.c Mon May 20 09:58:38 2019
@@ -362,6 +362,12 @@ static void getIntelProcessorTypeAndSubt
*Subtype = INTEL_COREI7_CANNONLAKE; // "cannonlake"
break;
+ // Icelake:
+ case 0x7e:
+ *Type = INTEL_COREI7;
+ *Subtype = INTEL_COREI7_ICELAKE_CLIENT; // "icelake-client"
+ break;
+
case 0x1c: // Most 45 nm Intel Atom processors
case 0x26: // 45 nm Atom Lincroft
case 0x27: // 32 nm Atom Medfield
@@ -387,6 +393,9 @@ static void getIntelProcessorTypeAndSubt
case 0x7a:
*Type = INTEL_GOLDMONT_PLUS;
break;
+ case 0x86:
+ *Type = INTEL_TREMONT;
+ break;
case 0x57:
*Type = INTEL_KNL; // knl
More information about the llvm-commits
mailing list