We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cb0bcf commit 31ea1cfCopy full SHA for 31ea1cf
hwy/ops/set_macros-inl.h
@@ -141,10 +141,18 @@
141
#define HWY_TARGET_STR_AVX2 \
142
HWY_TARGET_STR_SSE4 ",avx,avx2" HWY_TARGET_STR_BMI2_FMA HWY_TARGET_STR_F16C
143
144
+#ifndef HWY_HAVE_EVEX512
145
// evex512 has been removed from clang 22, see
146
// https://github.com/llvm/llvm-project/pull/157034
147
#if (1400 <= HWY_COMPILER_GCC_ACTUAL && HWY_COMPILER_GCC_ACTUAL < 1600) || \
148
(1800 <= HWY_COMPILER_CLANG && HWY_COMPILER_CLANG < 2200)
149
+#define HWY_HAVE_EVEX512 1
150
+#else
151
+#define HWY_HAVE_EVEX512 0
152
+#endif
153
154
+
155
+#if (HWY_HAVE_EVEX512 == 1)
156
#define HWY_TARGET_STR_AVX3_VL512 ",evex512"
157
#else
158
#define HWY_TARGET_STR_AVX3_VL512
0 commit comments