11 lines · plain
1// RUN: mlir-opt -test-memref-to-llvm-with-transforms %s | FileCheck %s2 3// Checks that the program does not crash. The functionality of the pattern is4// already checked in test/Dialect/MemRef/*.mlir5 6func.func @subview_folder(%arg0: memref<100x100xf32>, %arg1: index, %arg2: index, %arg3: index, %arg4: index) -> memref<?x?xf32, strided<[100, 1], offset: ?>> {7 %subview = memref.subview %arg0[%arg1, %arg2] [%arg3, %arg4] [1, 1] : memref<100x100xf32> to memref<?x?xf32, strided<[100, 1], offset: ?>>8 return %subview : memref<?x?xf32, strided<[100, 1], offset: ?>>9}10// CHECK-LABEL: llvm.func @subview_folder11