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

Gil Rapaport llvmlistbot at llvm.org
Thu Aug 7 12:11:40 PDT 2025


================
@@ -55,35 +65,33 @@ struct ConvertMemRefToEmitCPass
       return signalPassFailure();
 
     mlir::ModuleOp module = getOperation();
+    llvm::SmallVector<StringRef> requiredHeaders;
----------------
aniragil wrote:

Modules may have multiple calls to malloc/memcpy. Use a set instead? (IINM this currently doesn't cause double header inclusion because of the repeated scan below, but worth adding such a test case).

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


More information about the Mlir-commits mailing list