[Mlir-commits] [mlir] [MLIR][Transform][SMT] Introduce transform.smt.constrain_params (PR #159450)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Sep 17 13:53:21 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,h -- mlir/include/mlir/Dialect/Transform/SMTExtension/SMTExtension.h mlir/include/mlir/Dialect/Transform/SMTExtension/SMTExtensionOps.h mlir/lib/Dialect/Transform/SMTExtension/SMTExtension.cpp mlir/lib/Dialect/Transform/SMTExtension/SMTExtensionOps.cpp mlir/lib/Bindings/Python/DialectSMT.cpp mlir/lib/RegisterAllExtensions.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/include/mlir/Dialect/Transform/SMTExtension/SMTExtensionOps.h b/mlir/include/mlir/Dialect/Transform/SMTExtension/SMTExtensionOps.h
index dfea2039a..fc69b039f 100644
--- a/mlir/include/mlir/Dialect/Transform/SMTExtension/SMTExtensionOps.h
+++ b/mlir/include/mlir/Dialect/Transform/SMTExtension/SMTExtensionOps.h
@@ -18,5 +18,4 @@
#define GET_OP_CLASSES
#include "mlir/Dialect/Transform/SMTExtension/SMTExtensionOps.h.inc"
-
#endif // MLIR_DIALECT_TRANSFORM_SMTEXTENSION_SMTEXTENSIONOPS_H
diff --git a/mlir/lib/Bindings/Python/DialectSMT.cpp b/mlir/lib/Bindings/Python/DialectSMT.cpp
index 6e28d96ca..593e7505c 100644
--- a/mlir/lib/Bindings/Python/DialectSMT.cpp
+++ b/mlir/lib/Bindings/Python/DialectSMT.cpp
@@ -42,12 +42,12 @@ static void populateDialectSMTSubmodule(nanobind::module_ &m) {
},
"cls"_a, "width"_a, "context"_a = nb::none());
auto smtIntType = mlir_type_subclass(m, "IntType", mlirSMTTypeIsAInt)
- .def_classmethod(
- "get",
- [](const nb::object &, MlirContext context) {
- return mlirSMTTypeGetInt(context);
- },
- "cls"_a, "context"_a.none() = nb::none());
+ .def_classmethod(
+ "get",
+ [](const nb::object &, MlirContext context) {
+ return mlirSMTTypeGetInt(context);
+ },
+ "cls"_a, "context"_a.none() = nb::none());
auto exportSMTLIB = [](MlirOperation module, bool inlineSingleUseValues,
bool indentLetBody) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/159450
More information about the Mlir-commits
mailing list