[Mlir-commits] [mlir] [MLIR][XeGPU] Add wg-to-sg distirbution for dpasmx, bitcast, interleave, and deinterleave (PR #194985)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Apr 29 17:14:05 PDT 2026
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 origin/main HEAD --extensions h,cpp -- mlir/include/mlir/Dialect/XeGPU/Transforms/XeGPULayoutImpl.h mlir/lib/Dialect/XeGPU/Transforms/XeGPULayoutImpl.cpp mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp mlir/lib/Dialect/XeGPU/Utils/XeGPUUtils.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/XeGPU/Utils/XeGPUUtils.cpp b/mlir/lib/Dialect/XeGPU/Utils/XeGPUUtils.cpp
index fb0b5849f..41c4b2173 100644
--- a/mlir/lib/Dialect/XeGPU/Utils/XeGPUUtils.cpp
+++ b/mlir/lib/Dialect/XeGPU/Utils/XeGPUUtils.cpp
@@ -184,8 +184,8 @@ xegpu::getDistributeLayoutAttr(const OpOperand &opr) {
}
}
if (auto dpasMxOp = dyn_cast<xegpu::DpasMxOp>(op)) {
- // DpasMxOp has operands: a, b, optional acc, optional scale_a, optional scale_b
- // Use AttrSizedOperandSegments to determine which operand this is
+ // DpasMxOp has operands: a, b, optional acc, optional scale_a, optional
+ // scale_b Use AttrSizedOperandSegments to determine which operand this is
auto segmentSizesAttr = dpasMxOp->getAttrOfType<DenseI32ArrayAttr>(
dpasMxOp.getOperandSegmentSizesAttrName());
if (!segmentSizesAttr)
``````````
</details>
https://github.com/llvm/llvm-project/pull/194985
More information about the Mlir-commits
mailing list