[Mlir-commits] [mlir] [mlir] Execute same operand name constraints before user constraints. (PR #162526)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Oct 8 14:26:58 PDT 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 origin/main HEAD --extensions cpp -- mlir/test/lib/Dialect/Test/TestPatterns.cpp mlir/tools/mlir-tblgen/RewriterGen.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/test/lib/Dialect/Test/TestPatterns.cpp b/mlir/test/lib/Dialect/Test/TestPatterns.cpp
index e7be1981d..ee4fa3915 100644
--- a/mlir/test/lib/Dialect/Test/TestPatterns.cpp
+++ b/mlir/test/lib/Dialect/Test/TestPatterns.cpp
@@ -71,7 +71,7 @@ static Attribute opMTest(PatternRewriter &rewriter, Value val) {
}
static bool assertBinOpEqualArgsAndReturnTrue(Value v) {
- Operation* operation = v.getDefiningOp();
+ Operation *operation = v.getDefiningOp();
if (operation->getOperand(0) != operation->getOperand(1)) {
// Name binding equality check must happen before user-defined constraints,
// thus this must not be triggered.
``````````
</details>
https://github.com/llvm/llvm-project/pull/162526
More information about the Mlir-commits
mailing list