[llvm-branch-commits] [mlir] [mlir] Return `OpFoldResults` from the type-erased fold hooks (PR #228762)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Oct 4 15:08:31 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/ExtensibleDialect.h mlir/include/mlir/IR/OpDefinition.h mlir/include/mlir/IR/Operation.h mlir/include/mlir/IR/OperationSupport.h mlir/lib/IR/ExtensibleDialect.cpp mlir/lib/IR/MLIRContext.cpp mlir/lib/IR/Operation.cpp mlir/test/lib/Dialect/Test/TestDialectInterfaces.cpp mlir/test/lib/Dialect/Test/TestOpDefs.cpp mlir/test/lib/Dialect/Test/TestOps.h mlir/test/lib/Dialect/Transform/TestTransformDialectExtension.cpp mlir/unittests/IR/OpFoldResultsTest.cpp --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 82c0bd8d4..71e4d4644 100644
--- a/mlir/test/lib/Dialect/Test/TestOps.h
+++ b/mlir/test/lib/Dialect/Test/TestOps.h
@@ -262,7 +262,6 @@ void writeToMlirBytecode(mlir::DialectBytecodeWriter &writer,
 llvm::LogicalResult getConfiguredLegacyFoldResults(
     mlir::Operation *op, llvm::ArrayRef<mlir::Attribute> operands,
     llvm::StringRef name, llvm::SmallVectorImpl<mlir::OpFoldResult> &results);
-
 } // namespace test
 
 #define GET_OP_CLASSES

``````````

</details>


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


More information about the llvm-branch-commits mailing list