[Mlir-commits] [llvm] [mlir] [MLIR] Add `InParallelOpInterface` for parallel combining operations (PR #157736)
    Han-Chung Wang 
    llvmlistbot at llvm.org
       
    Fri Sep 12 13:41:26 PDT 2025
    
    
  
================
@@ -3935,6 +3934,20 @@ llvm::SmallBitVector ParallelInsertSliceOp::getDroppedDims() {
   return ::getDroppedDims(getSourceType().getShape(), getMixedSizes());
 }
 
+// ParallelCombiningOpInterface implementation
+MutableOperandRange ParallelInsertSliceOp::getUpdatedDestinations() {
+  return getDestMutable();
+}
+
+Operation *ParallelInsertSliceOp::getIteratingParent() {
+  // Return the parent InParallelOpInterface's parent
+  if (auto combiningOp =
+          dyn_cast<InParallelOpInterface>(getOperation()->getParentOp())) {
+    return combiningOp->getParentOp();
+  }
----------------
hanhanW wrote:
style nit: remove the braces `{}`.
https://github.com/llvm/llvm-project/pull/157736
    
    
More information about the Mlir-commits
mailing list