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

Jaden Angella llvmlistbot at llvm.org
Tue Jul 22 10:33:53 PDT 2025


================
@@ -30,6 +30,16 @@ struct ConvertMemRefToEmitCPass
     : public impl::ConvertMemRefToEmitCBase<ConvertMemRefToEmitCPass> {
   void runOnOperation() override {
     TypeConverter converter;
+    mlir::ModuleOp module = getOperation();
+    module.walk([&](mlir::Operation *op) {
+      if (llvm::isa<mlir::memref::AllocOp, mlir::memref::CopyOp>(op)) {
----------------
Jaddyen wrote:

My next patch will be adding `memcpy`. I jumped the gun on this. 
Correcting it now.

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


More information about the Mlir-commits mailing list