[Mlir-commits] [mlir] [MLIR][XeGPU] Add lowering from transfer_read/transfer_write to load_gather/store_scatter (PR #152429)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Aug 6 19:45:50 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 h,cpp -- mlir/include/mlir/Dialect/XeGPU/Utils/XeGPUUtils.h mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp mlir/lib/Dialect/XeGPU/Utils/XeGPUUtils.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp b/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
index 9f8fae841..adde5c1c2 100644
--- a/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
+++ b/mlir/lib/Conversion/VectorToXeGPU/VectorToXeGPU.cpp
@@ -497,7 +497,7 @@ struct TransferReadLowering : public OpRewritePattern<vector::TransferReadOp> {
return failure();
auto chip = xegpu::getXeGPUChipStr(readOp);
- if ( chip != "pvc" && chip != "bmg") {
+ if (chip != "pvc" && chip != "bmg") {
// perform additional checks -
if (failed(extraCheckForScatteredLoadStore(readOp, rewriter)))
return failure();
``````````
</details>
https://github.com/llvm/llvm-project/pull/152429
More information about the Mlir-commits
mailing list