[Mlir-commits] [mlir] [mlir]Fix compose subview (PR #80551)

Uday Bondhugula llvmlistbot at llvm.org
Mon Feb 5 16:52:23 PST 2024


================
@@ -45,3 +45,51 @@ func.func @main(%input: memref<4x1024xf32>) -> memref<1x128xf32, strided<[1024,
   %1 = memref.subview %0[1, %cst_128] [1, 128] [1, 1] : memref<2x256xf32, strided<[1024, 1], offset: ?>> to memref<1x128xf32, strided<[1024, 1], offset: ?>>
   return %1 : memref<1x128xf32, strided<[1024, 1], offset: ?>>
 }
+
+// -----
+
+func.func @main(%input: memref<4x1024xf32>) -> memref<1x64xf32, strided<[4096, 4], offset: 4480>> {
----------------
bondhugula wrote:

Instead of naming it `main`, name it based on the case exercised (although the cases above aren't following that practice). E.g. `@subview_strided`.

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


More information about the Mlir-commits mailing list