-
Notifications
You must be signed in to change notification settings - Fork 77
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: (hw) Add InnerSymAttr
attributes to HW dialect.
#2251
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2251 +/- ##
==========================================
+ Coverage 89.50% 89.52% +0.01%
==========================================
Files 328 328
Lines 39327 39428 +101
Branches 5825 5846 +21
==========================================
+ Hits 35201 35297 +96
- Misses 3320 3323 +3
- Partials 806 808 +2 ☔ View full report in Codecov by Sentry. |
|
InnerSymAttr
attributes to HW dialect.InnerSymAttr
attributes to HW dialect.
InnerSymAttr
attributes to HW dialect.InnerSymAttr
attributes to HW dialect.
Did you run |
Yes CI failed on e9a0829. I updated from requirements.txt in case there were any chances, but could try a full delete and reinstall, see if that changes anything… Edit: did that, to no avail. It seems the only difference remaining I can see is python 3.10 vs 3.11 |
- #2248 Was merged a bit fast; I realized meanwhile that not all opaque syntax attributes have this spacing 🥲 Best example in: - #2251 With the attribute `#hw<innerSym@sym>` 🥲 So I'm introducing `SpacedOpaqueSyntaxAttribute` for this common behaviour, but we need attributes to be able to use opaque syntax without hardcoding this spacing.
Previously incorrectly made snake case from camel case.
Updated on latest main & added missing bits. |
InnerSymAttr
attributes to HW dialect.InnerSymAttr
attributes to HW dialect.
Another hopefully manageable chunk of HW, which introduces the symbol attributes. These are used in many circt dialects (e.g., seq) to define the names then referenced by the
InnerRefAttr
s and the like.This is the bit of the symbol rationale that gives details.
This PR also includes a small fix on the tests, simplifying the test file and undoing the over-correction of camel case to snake case on symbol mnemonics (we want those to be compatible with CIRCT).
Thanks a lot to @PapyChacal for all the help in deciphering where CIRCT hides the symbol attr tests.