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

Uday Bondhugula llvmlistbot at llvm.org
Mon Feb 5 16:52:24 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>> {
+  //      CHECK: subview %arg0[4, 384] [1, 64] [4, 4] 
----------------
bondhugula wrote:

No numbered arguments in CHECK lines. Capture and match or use regex.

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


More information about the Mlir-commits mailing list