[clang] [llvm] [X86][AVX10.2] Decouple AMX-AVX512 from AVX10.2 (PR #148633)

Evgenii Kudriashov via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 23 17:24:20 PDT 2025


================
@@ -16,7 +16,15 @@
 
 #define __DEFAULT_FN_ATTRS_AVX512                                              \
   __attribute__((__always_inline__, __nodebug__,                               \
-                 __target__("amx-avx512,avx10.2-512")))
+                 __target__("amx-avx512")))
+
+#define __DEFAULT_FN_ATTRS_AVX512BF16                                          \
+  __attribute__((__always_inline__, __nodebug__,                               \
+                 __target__("amx-avx512,avx512bf16")))
+
+#define __DEFAULT_FN_ATTRS_AVX512FP16                                          \
+  __attribute__((__always_inline__, __nodebug__,                               \
+                 __target__("amx-avx512,avx512fp16")))
----------------
e-kud wrote:

Unfortunately I had to add `avx512bf16` as requirement because we don't have `bf16` register class without it. We need to decouple it from `hasBF16` first. I'll address it separately.

https://github.com/llvm/llvm-project/pull/148633


More information about the llvm-commits mailing list