[Mlir-commits] [mlir] [mlir][XeGPU] add WgToSg distribution pattern for load_matrix and store_matrix. (PR #154403)
Charitha Saumya
llvmlistbot at llvm.org
Wed Aug 20 09:59:27 PDT 2025
================
@@ -77,6 +76,72 @@ getSgShapeAndCount(ArrayRef<int64_t> shape, xegpu::LayoutAttr layout) {
return std::make_pair(sgShape, count);
}
+// An util helper to generate elementwise addition ops for index computing.
+// lhs and rhs are vectors of Values. If the rank of lhs and rhs doesn't match.
+// left-alignment is performed.
+static SmallVector<OpFoldResult> add(ConversionPatternRewriter &rewriter,
----------------
charithaintc wrote:
I would rename this function to something meaningful than `add`. Or you can call thr function with `.drop_front` to make the lengths equal.
Right now, function do more than what it name suggests.
https://github.com/llvm/llvm-project/pull/154403
More information about the Mlir-commits
mailing list