[llvm-branch-commits] [mlir] [mlir] Add the `OpFoldResults` form to fold traits and `DialectFoldInterface` (PR #228769)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Oct 4 15:09:54 PDT 2026


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 h,cpp -- mlir/include/mlir/IR/OpDefinition.h mlir/include/mlir/Interfaces/CastInterfaces.h mlir/include/mlir/Interfaces/FoldInterfaces.h mlir/lib/IR/Operation.cpp mlir/lib/Interfaces/CastInterfaces.cpp mlir/test/lib/Dialect/Test/TestDialectInterfaces.cpp mlir/test/lib/Dialect/Test/TestOpDefs.cpp mlir/test/lib/Dialect/Test/TestOps.h --diff_from_common_commit
``````````

: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/TestOps.h b/mlir/test/lib/Dialect/Test/TestOps.h
index 804550518..877138826 100644
--- a/mlir/test/lib/Dialect/Test/TestOps.h
+++ b/mlir/test/lib/Dialect/Test/TestOps.h
@@ -298,7 +298,6 @@ public:
     return getConfiguredFoldResults(op, operands, "trait_fold");
   }
 };
-
 } // namespace test
 
 #define GET_OP_CLASSES

``````````

</details>


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


More information about the llvm-branch-commits mailing list