[Mlir-commits] [mlir] [mlir][mesh] Use tensor shape notation for the shape of a cluster (PR #73826)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Nov 30 09:07:40 PST 2023
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 ff5e536b5e3b59fbc40df0e24494c6ce7417e2ea 0971cd7a5ef6ffb5a572d772a58aada23f4bb2f4 -- mlir/include/mlir/IR/BuiltinAttributes.h mlir/include/mlir/IR/OpImplementation.h mlir/lib/Dialect/Mesh/IR/MeshOps.cpp mlir/lib/IR/AsmPrinter.cpp mlir/lib/IR/BuiltinAttributes.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/IR/OpImplementation.h b/mlir/include/mlir/IR/OpImplementation.h
index ca74ac2592..3be75d4517 100644
--- a/mlir/include/mlir/IR/OpImplementation.h
+++ b/mlir/include/mlir/IR/OpImplementation.h
@@ -1768,13 +1768,14 @@ public:
};
template <typename Range>
-void printShape(raw_ostream& stream, Range&& shape) {
+void printShape(raw_ostream &stream, Range &&shape) {
for (auto [idx, dimSize] : llvm::enumerate(shape)) {
if (ShapedType::isDynamic(dimSize))
stream << "?";
else
stream << dimSize;
- if (static_cast<std::decay_t<decltype(range_size(shape))>>(idx) != range_size(shape) - 1)
+ if (static_cast<std::decay_t<decltype(range_size(shape))>>(idx) !=
+ range_size(shape) - 1)
stream << "x";
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/73826
More information about the Mlir-commits
mailing list