-
Notifications
You must be signed in to change notification settings - Fork 79
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
dialects: (seq) Add builder and verifier for CompRegOp #2429
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this contribution, I just added a few comments on minor things I'd really like to see improved before merging.
Also, how do magnets work? 🤔
xdsl/dialects/seq.py
Outdated
if (self.reset is not None and self.reset_value is None) or ( | ||
self.reset_value is not None and self.reset is None | ||
): | ||
raise VerifyException("both reset and reset_value must be set when one is") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our verifier messages usually start with uppercase letters afaik.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2429 +/- ##
=======================================
Coverage 89.70% 89.71%
=======================================
Files 345 345
Lines 42001 42014 +13
Branches 6251 6252 +1
=======================================
+ Hits 37678 37691 +13
Misses 3407 3407
Partials 916 916 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 📈
This PR adds a verifier and a builder to CompRegOp.