[Mlir-commits] [mlir] [MLIR][Transform] Add attribute in MatchOp to filter by operand type (PR #67994)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Oct 2 08:00:29 PDT 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 35f5c8d77a839fd0a3b15ca0085a7246ed459853 66efa5f2c3bb2ae566d2898df4b6a55d54d5cb7a -- mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp b/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
index 5363e6116d1b..260615ece7a9 100644
--- a/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
+++ b/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
@@ -1180,11 +1180,11 @@ transform::MatchOp::apply(transform::TransformRewriter &rewriter,
         return;
     }
 
-    if(getFilterOperandType().has_value()) {
+    if (getFilterOperandType().has_value()) {
       Type t = getFilterOperandType().value();
       for (auto type : op->getOperandTypes()) {
         if (type != t) {
-            return;
+          return;
         }
       }
     }

``````````

</details>


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


More information about the Mlir-commits mailing list