[Mlir-commits] [mlir] [mlir][EmitC] Expand the MemRefToEmitC pass - Lowering `CopyOp` (PR #151206)

Paul Kirth llvmlistbot at llvm.org
Mon Aug 4 11:28:38 PDT 2025


================
@@ -0,0 +1,26 @@
+// RUN: mlir-opt -convert-memref-to-emitc %s  | FileCheck %s
+
+func.func @copying(%arg0 : memref<9x4x5x7xf32>, %arg1 : memref<9x4x5x7xf32>) {
+  memref.copy %arg0, %arg1 : memref<9x4x5x7xf32> to memref<9x4x5x7xf32>
+  return
+}
+
+// CHECK: module {
+// CHECK-NEXT:  emitc.include <"string.h">
----------------
ilovepi wrote:

There should probably be a c++ test too.

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


More information about the Mlir-commits mailing list