[llvm] [mlir] [mlir][ods] Allow sharding of op definitions (PR #89411)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 19 09:26:46 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 e553ac4d8148291914526f4f66f09e362ce0a63f 4b880c2f37af13fe066975f71a39cd7f24771831 -- mlir/tools/mlir-src-sharder/mlir-src-sharder.cpp mlir/include/mlir/TableGen/CodeGenHelpers.h mlir/lib/TableGen/CodeGenHelpers.cpp mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp mlir/tools/mlir-tblgen/OpGenHelpers.cpp mlir/tools/mlir-tblgen/OpGenHelpers.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp b/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
index ff26b2a616..63fe5a8099 100644
--- a/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
+++ b/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
@@ -4478,8 +4478,7 @@ static bool emitOpDefs(const RecordKeeper &recordKeeper, raw_ostream &os) {
return false;
Dialect dialect = Operator(defs.front()).getDialect();
for (auto [idx, value] : llvm::enumerate(shardedDefs)) {
- emitOpDefShard(recordKeeper, value, dialect, idx,
- shardedDefs.size(), os);
+ emitOpDefShard(recordKeeper, value, dialect, idx, shardedDefs.size(), os);
}
return false;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/89411
More information about the llvm-commits
mailing list