[Mlir-commits] [mlir] [mlir][linalg] Genericize MapOp (PR #162742)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Oct 10 07:25:30 PDT 2025
================
@@ -1495,14 +1497,14 @@ void MapOp::build(
if (bodyBuild)
buildGenericRegion(builder, result.location, *result.regions.front(),
- inputs, /*outputs=*/{}, bodyBuild);
+ inputs, /*outputs=*/{init}, bodyBuild);
}
static void addBodyWithPayloadOp(OpAsmParser &parser, OperationState &result,
const OperationName &payloadOpName,
const NamedAttrList &payloadOpAttrs,
ArrayRef<Value> operands,
- bool initFirst = false) {
+ bool initFirst = false, bool mapInit = true) {
----------------
srcarroll wrote:
this was just the option with least amount of changes but can refactor if necessary
https://github.com/llvm/llvm-project/pull/162742
More information about the Mlir-commits
mailing list