[Mlir-commits] [mlir] [mlir][tosa] Improve tosa-infer-shapes for ops consumed by non-TOSA operators (PR #72715)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Nov 17 14:49:50 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 5679f5515b8ba83c804ad871452a95565af76e19 e3b95cb7f3e563d1b4bd7450f4872ff924bf3ae6 -- mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp b/mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp
index 94066d044d..ad28c564f7 100644
--- a/mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp
+++ b/mlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp
@@ -187,7 +187,7 @@ void propagateShapesToTosaWhile(Operation &op) {
// during inference. This information is used to introduce casts
// back to the type expected by the operand after inference.
struct TypeRewriteInfo {
- OpOperand* operand;
+ OpOperand *operand;
Type oldType;
};
@@ -255,7 +255,7 @@ void propagateShapesInRegion(Region ®ion) {
result.setType(newKnowledge.getType());
// Collect all uses of the operation which require update.
- for (auto& user : result.getUses()) {
+ for (auto &user : result.getUses()) {
if (!isReplaceableUser(user.getOwner()))
requiresUpdate.push_back({&user, resultTy});
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/72715
More information about the Mlir-commits
mailing list