-
Notifications
You must be signed in to change notification settings - Fork 604
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
Make some usages of suggestName runtime deprecated #2556
base: main
Are you sure you want to change the base?
Conversation
Opening this as draft since I am still working on the tests, which are revealing to me that there are myriad usages of suggestName inside the chisel internals itself that I was not aware of |
936b66e
to
9b6e3fe
Compare
Note this currently comments out reflective naming as it kept tripping up the "you are suggesting the same name the plugin would have given you" test |
This has changed in that I now am checking that thing-you-are-suggestNaming is actually |
062bb28
to
1cd71a2
Compare
* suggestName -- add some runtime deprecations * suggestName -- make it an error to call suggestName outside of Builder Context * SuggestName: create an internal version and use it internally to avoid runtime deprecations * Added a SuggestNameSpec to test suggestName behavior
…cause they are hitting the 'you get the same name as the prefix' warnings
1cd71a2
to
dbb9078
Compare
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.
Some minor suggestions, and 1 problem we should sort out (the error message for the suggestName matching the automatically derived name).
Co-authored-by: Jack Koenig <koenig@sifive.com>
Co-authored-by: Jack Koenig <koenig@sifive.com>
Co-authored-by: Jack Koenig <koenig@sifive.com>
Co-authored-by: Jack Koenig <koenig@sifive.com>
Co-authored-by: Jack Koenig <koenig@sifive.com>
I think I've incorporated all the feedback |
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Contributor Checklist
docs/src
?Type of Improvement
API Impact
This runtime deprecates some usages of the suggestName API and warns that they will be turned into errors in the future. Specifically, you can no longer:
Backend Code Generation Impact
No impact on output verilog, though people avoiding these runtimeDeprecations would see them.
Desired Merge Strategy
Release Notes
Some usages of suggestName are runtime deprecated or made an error
Reviewer Checklist (only modified by reviewer)
3.4.x
, [small] API extension:3.5.x
, API modification or big change:3.6.0
)?Enable auto-merge (squash)
, clean up the commit message, and label withPlease Merge
.Create a merge commit
.