[Mlir-commits] [mlir] [MLIR][Vector] Add warp distribution for `scf.if` (PR #157119)
Charitha Saumya
llvmlistbot at llvm.org
Tue Sep 9 22:59:11 PDT 2025
================
@@ -371,6 +371,36 @@ static VectorType getDistributedType(VectorType originalType, AffineMap map,
return targetType;
}
+/// Given a warpOp that contains ops with regions, the corresponding op's
+/// "inner" region and the distributionMapFn, get all values used by the op's
+/// region that are defined within the warpOp. Return the set of values, their
+/// types and their distributed types.
+std::tuple<llvm::SmallSetVector<Value, 32>, SmallVector<Type>,
+ SmallVector<Type>>
+getInnerRegionEscapingValues(WarpExecuteOnLane0Op warpOp, Region &innerRegion,
----------------
charithaintc wrote:
why not reuse this in scf.for as well? that was the main motivation for moving it to a function.
https://github.com/llvm/llvm-project/pull/157119
More information about the Mlir-commits
mailing list