Skip to content

Commit 10ca4b2

Browse files
committed
Add a patch for detection of AVX512 on Skylake
1 parent 3092476 commit 10ca4b2

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

deps/llvm.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ $(eval $(call LLVM_PATCH,llvm-D27389)) # Julia issue #19792, Remove for 4.0
504504
$(eval $(call LLVM_PATCH,llvm-D27397)) # Julia issue #19792, Remove for 4.0
505505
$(eval $(call LLVM_PATCH,llvm-D28009)) # Julia issue #19792, Remove for 4.0
506506
$(eval $(call LLVM_PATCH,llvm-D28215_FreeBSD_shlib))
507+
$(eval $(call LLVM_PATCH,llvm-D28221-avx512)) # mentioned in issue #19797
507508
endif # LLVM_VER
508509

509510
ifeq ($(LLVM_VER),3.7.1)

deps/patches/llvm-D28221-avx512.patch

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Index: lib/Support/Host.cpp
2+
===================================================================
3+
--- a/lib/Support/Host.cpp
4+
+++ b/lib/Support/Host.cpp
5+
@@ -475,13 +475,14 @@
6+
7+
// Skylake:
8+
case 0x4e:
9+
- *Type = INTEL_COREI7; // "skylake-avx512"
10+
- *Subtype = INTEL_COREI7_SKYLAKE_AVX512;
11+
- break;
12+
case 0x5e:
13+
*Type = INTEL_COREI7; // "skylake"
14+
*Subtype = INTEL_COREI7_SKYLAKE;
15+
break;
16+
+ case 0x55:
17+
+ *Type = INTEL_COREI7; // "skylake-avx512"
18+
+ *Subtype = INTEL_COREI7_SKYLAKE_AVX512;
19+
+ break;
20+
21+
case 0x1c: // Most 45 nm Intel Atom processors
22+
case 0x26: // 45 nm Atom Lincroft

0 commit comments

Comments
 (0)