[Mlir-commits] [mlir] [MLIR][XeGPU][Draft] Xegpu distribution patterns for load_nd, store_nd, and create_nd_tdesc. (PR #119783)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Dec 12 14:42:09 PST 2024
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 cafb6b99bb2314c53683870e4130633fff25360a 07f9f9f77953c4278912afd12910f2264f3e36e3 --extensions cpp,h -- mlir/include/mlir/Dialect/GPU/Utils/DistributionUtils.h mlir/lib/Dialect/GPU/Utils/DistributionUtils.cpp mlir/lib/Dialect/XeGPU/Transforms/XeGPUDistribute.cpp mlir/test/lib/Dialect/XeGPU/TestXeGPUTransforms.cpp mlir/include/mlir/Conversion/GPUCommon/GPUCommonPass.h mlir/include/mlir/Dialect/GPU/Transforms/Passes.h mlir/include/mlir/Dialect/XeGPU/Transforms/Transforms.h mlir/lib/Dialect/GPU/Transforms/AsyncRegionRewriter.cpp mlir/lib/Dialect/GPU/Transforms/KernelOutlining.cpp mlir/lib/Dialect/GPU/Transforms/SubgroupReduceLowering.cpp mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp mlir/tools/mlir-opt/mlir-opt.cpp mlir/include/mlir/Dialect/GPU/Utils/GPUUtils.h mlir/lib/Dialect/GPU/Utils/Utils.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/Dialect/GPU/Transforms/Passes.h b/mlir/include/mlir/Dialect/GPU/Transforms/Passes.h
index eb51d477e2..aaef91f31a 100644
--- a/mlir/include/mlir/Dialect/GPU/Transforms/Passes.h
+++ b/mlir/include/mlir/Dialect/GPU/Transforms/Passes.h
@@ -13,8 +13,8 @@
#ifndef MLIR_DIALECT_GPU_TRANSFORMS_PASSES_H_
#define MLIR_DIALECT_GPU_TRANSFORMS_PASSES_H_
-#include "mlir/Dialect/GPU/Utils/GPUUtils.h"
#include "mlir/Dialect/GPU/IR/GPUDialect.h"
+#include "mlir/Dialect/GPU/Utils/GPUUtils.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/Pass/Pass.h"
#include <optional>
diff --git a/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp b/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
index f0e67df3ee..84c0bf15c7 100644
--- a/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
+++ b/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
@@ -283,7 +283,8 @@ LogicalResult LoadNdOp::verify() {
// if (tdescShape != valueShape)
// return emitOpError() << "Result shape doesn't match TensorDesc shape."
- // << "The expected shape is " << makeString(tdescShape)
+ // << "The expected shape is " <<
+ // makeString(tdescShape)
// << ". But the given shape is "
// << makeString(valueShape) << ".\n";
return success();
``````````
</details>
https://github.com/llvm/llvm-project/pull/119783
More information about the Mlir-commits
mailing list