[Mlir-commits] [mlir] [mlir][mesh, mpi] More on MeshToMPI (PR #129048)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Feb 28 01:04:27 PST 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 e3f52690c796baca241a6771d897adc6670a1ed8 bcdde96e07bc5dcf5669c95e2d2eac44ef9128c1 --extensions cpp -- mlir/lib/Conversion/MeshToMPI/MeshToMPI.cpp mlir/lib/Dialect/Mesh/IR/MeshOps.cpp mlir/lib/Dialect/Tensor/Extensions/MeshShardingExtensions.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Conversion/MeshToMPI/MeshToMPI.cpp b/mlir/lib/Conversion/MeshToMPI/MeshToMPI.cpp
index 64b7dceb7d..e78afff8e0 100644
--- a/mlir/lib/Conversion/MeshToMPI/MeshToMPI.cpp
+++ b/mlir/lib/Conversion/MeshToMPI/MeshToMPI.cpp
@@ -45,7 +45,8 @@ using namespace mlir;
 using namespace mesh;
 
 namespace {
-/// Converts a vector of OpFoldResults (ints) into vector of Values of the provided type.
+/// Converts a vector of OpFoldResults (ints) into vector of Values of the
+/// provided type.
 static SmallVector<Value> getMixedAsValues(OpBuilder b, const Location &loc,
                                            llvm::ArrayRef<int64_t> statics,
                                            ValueRange dynamics,
@@ -55,7 +56,8 @@ static SmallVector<Value> getMixedAsValues(OpBuilder b, const Location &loc,
   Type i64 = b.getI64Type();
   if (!type)
     type = i64;
-  assert(i64 == type || b.getIndexType() == type && "expected an i64 or an intex type");
+  assert(i64 == type ||
+         b.getIndexType() == type && "expected an i64 or an intex type");
   for (auto s : statics) {
     values.emplace_back(
         ShapedType::isDynamic(s)

``````````

</details>


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


More information about the Mlir-commits mailing list