[Mlir-commits] [mlir] [MLIR][XeGPU] Relax LoadStoreMatrixToXeVMPattern to accept non-distributed load_matrix/store_matrix (PR #210595)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Jul 19 06:43:33 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 cpp -- mlir/lib/Conversion/XeGPUToXeVM/XeGPUToXeVM.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/Conversion/XeGPUToXeVM/XeGPUToXeVM.cpp b/mlir/lib/Conversion/XeGPUToXeVM/XeGPUToXeVM.cpp
index 03808d2d0..fae578eef 100644
--- a/mlir/lib/Conversion/XeGPUToXeVM/XeGPUToXeVM.cpp
+++ b/mlir/lib/Conversion/XeGPUToXeVM/XeGPUToXeVM.cpp
@@ -720,8 +720,9 @@ class LoadStoreMatrixToXeVMPattern : public OpConversionPattern<OpType> {
       // not catch it for results.
       if (auto vecType = dyn_cast<VectorType>(resType)) {
         // Flatten to 1D
-        // Accepts multi-dim tile as one flat, contiguous run. 
-        // This is only valid when the underlying mem_desc region is contiguous in memory
+        // Accepts multi-dim tile as one flat, contiguous run.
+        // This is only valid when the underlying mem_desc region is contiguous
+        // in memory
         resType = VectorType::get({vecType.getNumElements()},
                                   vecType.getElementType());
       }

``````````

</details>


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


More information about the Mlir-commits mailing list