Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SMT][python] enable python bindings #8071

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

makslevental
Copy link
Contributor

This PR enables the python bindings for the smt dialect.

I'm not sure what y'alls approach is to testing these bindings since PyCDE only tests the bindings it uses and I don't see any other python bindings tests around...

@makslevental makslevental force-pushed the users/makslevental/enable-smt-python-bindings branch from a75d771 to 06a998e Compare January 12, 2025 21:53
@uenoku
Copy link
Member

uenoku commented Jan 13, 2025

Thanks! We test python bindings in integration_test/Bindings/Python/dialects.

@makslevental
Copy link
Contributor Author

@uenoku added a "smoke test"

@makslevental makslevental force-pushed the users/makslevental/enable-smt-python-bindings branch from 0a8f5b3 to 20055ee Compare January 13, 2025 08:13
Copy link
Member

@maerhart maerhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this!

@@ -0,0 +1,24 @@
//===- SMT.h - C interface for the SMT dialect ----------------*- C -*-===//
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

80 cols

@@ -0,0 +1,14 @@
//===- SMTOps.td - Entry point for SMT bindings --------*- tablegen -*-===//
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

80 cols


include "circt/Dialect/SMT/SMT.td"

#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#endif
#endif // BINDINGS_PYTHON_SMT_OPS

@@ -0,0 +1,14 @@
//===- SMT.cpp - C interface for the SMT dialect ----------------------===//
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

80 cols

@makslevental makslevental merged commit baea6c2 into main Jan 13, 2025
4 checks passed
@makslevental makslevental deleted the users/makslevental/enable-smt-python-bindings branch January 13, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants