[Mlir-commits] [mlir] [MLIR][XeGPU] Update the type of offsets for CreateDescOp and UpdateOffsetOp (PR #110741)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Oct 1 14:03:58 PDT 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 5cabf1505d2180083ae3cf34abd79924cbcdbdbf 63fb0f540ed3186d1d23461bb1c95a87a5be286a --extensions h,cpp -- mlir/include/mlir/Dialect/XeGPU/IR/XeGPU.h mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp b/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
index a6763c665b..5bd3c370e3 100644
--- a/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
+++ b/mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
@@ -497,7 +497,8 @@ LogicalResult StoreScatterOp::verify() {
 // XeGPU_UpdateOffsetOp
 //===----------------------------------------------------------------------===//
 void UpdateOffsetOp::build(OpBuilder &builder, OperationState &state,
-                         mlir::Value tensorDesc, llvm::ArrayRef<OpFoldResult> offsets) {
+                           mlir::Value tensorDesc,
+                           llvm::ArrayRef<OpFoldResult> offsets) {
   auto tdescTy = mlir::dyn_cast<TensorDescType>(tensorDesc.getType());
   assert(tdescTy && "Expecting the source is a TensorDescType value.");
   auto loc = tensorDesc.getLoc();
@@ -509,7 +510,7 @@ void UpdateOffsetOp::build(OpBuilder &builder, OperationState &state,
 }
 
 void UpdateOffsetOp::build(OpBuilder &builder, OperationState &state,
-                         Value tensorDesc, llvm::ArrayRef<int64_t> offsets) {
+                           Value tensorDesc, llvm::ArrayRef<int64_t> offsets) {
   auto ofrs = getAsIndexOpFoldResult(builder.getContext(), offsets);
   build(builder, state, tensorDesc, ofrs);
 }

``````````

</details>


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


More information about the Mlir-commits mailing list