[compiler-rt] r315505 - [X86] Add Knights Mill CPU to cpu_indicator support to match libgcc.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 11 13:35:44 PDT 2017
Author: ctopper
Date: Wed Oct 11 13:35:43 2017
New Revision: 315505
URL: http://llvm.org/viewvc/llvm-project?rev=315505&view=rev
Log:
[X86] Add Knights Mill CPU to cpu_indicator support to match libgcc.
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=315505&r1=315504&r2=315505&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/cpu_model.c (original)
+++ compiler-rt/trunk/lib/builtins/cpu_model.c Wed Oct 11 13:35:43 2017
@@ -54,6 +54,7 @@ enum ProcessorTypes {
AMD_BTVER1,
AMD_BTVER2,
AMDFAM17H,
+ INTEL_KNM,
CPU_TYPE_MAX
};
@@ -361,6 +362,10 @@ getIntelProcessorTypeAndSubtype(unsigned
*Type = INTEL_KNL; // knl
break;
+ case 0x85:
+ *Type = INTEL_KNM; // knm
+ break;
+
default: // Unknown family 6 CPU.
break;
break;
More information about the llvm-commits
mailing list