[Mlir-commits] [mlir] [mlir][EmitC] Expand the MemRefToEmitC pass - Lowering `CopyOp` (PR #151206)
Jaden Angella
llvmlistbot at llvm.org
Fri Aug 8 14:25:53 PDT 2025
================
@@ -0,0 +1,30 @@
+// RUN: mlir-opt -convert-memref-to-emitc="lower-to-cpp=true" %s -split-input-file | FileCheck %s --check-prefix=CPP
+// RUN: mlir-opt -convert-memref-to-emitc="lower-to-cpp=false" %s -split-input-file | FileCheck %s --check-prefix=NOCPP
+
+func.func @copying(%arg0 : memref<9x4x5x7xf32>, %arg1 : memref<9x4x5x7xf32>) {
+ memref.copy %arg0, %arg1 : memref<9x4x5x7xf32> to memref<9x4x5x7xf32>
+ return
+}
+
+// CHECK: module {
+// NOCPP: emitc.include <"string.h">
+
+// CPP: emitc.include <"cstring">
----------------
Jaddyen wrote:
i've addressed in new changes.
https://github.com/llvm/llvm-project/pull/151206
More information about the Mlir-commits
mailing list