[Mlir-commits] [mlir] [mlir][linalg] Fix crashes in parser on linalg ops without operands (PR #97944)

Matthias Springer llvmlistbot at llvm.org
Sun Jul 7 03:18:49 PDT 2024


================
@@ -725,6 +747,15 @@ func.func @broadcast_size_1_extension_not_supported(
       dimensions = [1]
   func.return %bcast : tensor<4x?x16xf32>
 }
+// -----
+
+func.func @broadcast_no_operands()
+    -> tensor<4x?x16xf32> {
+  linalg.broadcast dimensions = [1]
----------------
matthias-springer wrote:

Can you add another test case for the generic form? Same for the `linalg.transpose` and `linalg.map`.

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


More information about the Mlir-commits mailing list