Skip to content

Commit 95e9841

Browse files
committed
Update DPS interface implementation
1 parent 1e84f69 commit 95e9841

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

mlir/include/mlir/Dialect/SCF/IR/SCFOps.td

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -633,13 +633,8 @@ def ForallOp : SCF_Op<"forall", [
633633

634634
InParallelOp getTerminator();
635635

636-
// Implement this to declare all shared_outs as inits/outs to
637-
// DestinationStyleOpInterface
638-
std::pair<int64_t, int64_t> getDpsInitsPositionRange() {
639-
int64_t numOperands = getNumOperands();
640-
int64_t numOuts = getOutputs().size();
641-
return {numOperands - numOuts, numOperands};
642-
}
636+
// Declare the shared_outs as inits/outs to DestinationStyleOpInterface.
637+
MutableOperandRange getDpsInitsMutable() { return getOutputsMutable(); }
643638
}];
644639
}
645640

0 commit comments

Comments
 (0)