[Mlir-commits] [mlir] [mlir][spirv] Add bfloat16 support (PR #141458)

Igor Wodiany llvmlistbot at llvm.org
Tue May 27 04:22:37 PDT 2025


================
@@ -37,20 +37,43 @@ class SPIRV_ArithmeticBinaryOp<string mnemonic, Type type,
   let assemblyFormat = "operands attr-dict `:` type($result)";
 }
 
-class SPIRV_ArithmeticUnaryOp<string mnemonic, Type type,
+class SPIRV_ArithmeticWithCoopMatrixBinaryOp<string mnemonic,
----------------
IgWod-IMG wrote:

I'm not sure whether this change should be a part of this PR. I see how it's related, but I think it may make more sense to land adding the bf16 extension first and then have a separate PR for changes to the ops. This would also mean you could address the TODO above as a part of the second PR. So, my suggestion is to have 2 PRs:

1. Adding `SPV_KHR_bfloat16` support
2. Enabling bf16 with coop matrices

But we should let the code owners to make decision on that.

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


More information about the Mlir-commits mailing list