[Mlir-commits] [mlir] [mlir][XeGPU] add WgToSg distribution pattern for load_matrix and store_matrix. (PR #154403)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Aug 20 10:48:43 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- mlir/include/mlir/Dialect/XeGPU/IR/XeGPU.h mlir/lib/Dialect/XeGPU/IR/XeGPUDialect.cpp mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp mlir/lib/Dialect/XeGPU/Transforms/XeGPUBlocking.cpp mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp mlir/lib/Dialect/XeGPU/Utils/XeGPUUtils.cpp mlir/test/lib/Dialect/XeGPU/TestXeGPUTransforms.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp b/mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp
index c5b497dcc..dc58868cc 100644
--- a/mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp
+++ b/mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp
@@ -77,10 +77,11 @@ getSgShapeAndCount(ArrayRef<int64_t> shape,
 }
 
 /// Generates element-wise addition ops of two arrays with automatic alignment.
-/// When the input arrays have different sizes, the shorter array is right-aligned
-/// with the longer array, and the unmatched leading elements from the longer array
-/// are preserved unchanged. This is commonly used for offset computation where
-/// higher-dimensional offsets need to be added to lower-dimensional adjustments.
+/// When the input arrays have different sizes, the shorter array is
+/// right-aligned with the longer array, and the unmatched leading elements from
+/// the longer array are preserved unchanged. This is commonly used for offset
+/// computation where higher-dimensional offsets need to be added to
+/// lower-dimensional adjustments.
 ///
 /// Example:
 ///   lhs = [10, 20, 30], rhs = [5, 7]

``````````

</details>


https://github.com/llvm/llvm-project/pull/154403


More information about the Mlir-commits mailing list