[Mlir-commits] [mlir] [mlir][EmitC] Expand the MemRefToEmitC pass - Lowering `CopyOp` (PR #151206)
Jaden Angella
llvmlistbot at llvm.org
Tue Aug 5 10:34:09 PDT 2025
================
@@ -57,31 +67,33 @@ struct ConvertMemRefToEmitCPass
mlir::ModuleOp module = getOperation();
module.walk([&](mlir::emitc::CallOpaqueOp callOp) {
if (callOp.getCallee() != alignedAllocFunctionName &&
- callOp.getCallee() != mallocFunctionName) {
+ callOp.getCallee() != mallocFunctionName &&
+ callOp.getCallee() != memcpyFunctionName)
return mlir::WalkResult::advance();
- }
for (auto &op : *module.getBody()) {
emitc::IncludeOp includeOp = llvm::dyn_cast<mlir::emitc::IncludeOp>(op);
- if (!includeOp) {
----------------
Jaddyen wrote:
ideally, yes.
but im already modifying this portion of code and this would be a single line change.
https://github.com/llvm/llvm-project/pull/151206
More information about the Mlir-commits
mailing list