[Mlir-commits] [mlir] [mlir][mesh] Add lowering of process multi-index op (PR #77490)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Jan 9 07:56:43 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 4b7e861d136d941d86b234fbcef520fd798b26fa 101d39c9cdf85bf139f66aae0e886a49c37412c9 -- mlir/include/mlir/Dialect/Mesh/Transforms/Transforms.h mlir/lib/Dialect/Mesh/Transforms/Transforms.cpp mlir/test/lib/Dialect/Mesh/TestProcessMultiIndexOpLowering.cpp mlir/lib/Dialect/Mesh/IR/MeshOps.cpp mlir/lib/Dialect/Mesh/Transforms/Spmdization.cpp mlir/tools/mlir-opt/mlir-opt.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/Mesh/Transforms/Transforms.cpp b/mlir/lib/Dialect/Mesh/Transforms/Transforms.cpp
index ba288e334e..a5e97bc662 100644
--- a/mlir/lib/Dialect/Mesh/Transforms/Transforms.cpp
+++ b/mlir/lib/Dialect/Mesh/Transforms/Transforms.cpp
@@ -38,7 +38,9 @@ struct ProcessMultiIndexOpLowering : OpRewritePattern<ProcessMultiIndexOp> {
     builder.setInsertionPointAfter(op.getOperation());
     Value linearIndex = builder.create<ProcessLinearIndexOp>(mesh);
     ValueRange meshShape = builder.create<ClusterShapeOp>(mesh).getResults();
-    SmallVector<Value> completeMultiIndex = builder.create<affine::AffineDelinearizeIndexOp>(linearIndex, meshShape).getMultiIndex();
+    SmallVector<Value> completeMultiIndex =
+        builder.create<affine::AffineDelinearizeIndexOp>(linearIndex, meshShape)
+            .getMultiIndex();
     SmallVector<Value> multiIndex;
     ArrayRef<MeshAxis> opMeshAxes = op.getAxes();
     SmallVector<MeshAxis> opAxesIota;

``````````

</details>


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


More information about the Mlir-commits mailing list