[Mlir-commits] [mlir] [mlir][spirv] Deserialize OpConstantComposite of type Cooperative Matrix (PR #142786)

Jakub Kuderski llvmlistbot at llvm.org
Mon Jun 9 09:38:50 PDT 2025


================
@@ -277,4 +277,11 @@ spirv.module Logical GLSL450 requires #spirv.vce<v1.0, [Shader], []> {
     %signed_minus_one = spirv.Constant -1 : si16
     spirv.ReturnValue %signed_minus_one : si16
   }
+
+  // CHECK-LABEL: @coop_matrix_const
+  spirv.func @coop_matrix_const() -> (!spirv.coopmatrix<16x16xf32, Subgroup, MatrixAcc>) "None" {
+    // CHECK: {{%.*}} = spirv.Constant dense<0.000000e+00> : !spirv.coopmatrix<16x16xf32, Subgroup, MatrixAcc>
----------------
kuhar wrote:

Would it be worth checking for some non-zero constant? (In case get lucky here by having some storage zeroed-out without initializing it properly, which happens to work for 0.0)

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


More information about the Mlir-commits mailing list