-
Notifications
You must be signed in to change notification settings - Fork 176
Allow Side Effecting Statement to have Names #2057
Conversation
This comment has been minimized.
This comment has been minimized.
ee0390a
to
46b39a6
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.
Pretty cool, i've been wanting this feature for a while. I think adding the trait might clean up the pattern matching a little bit and make it easier to add other similar nodes in the future, but i'll defer to you.
What's the chisel strategy going to be for emitting these names?
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.
Looks really good overall, some minor comments.
ba0441c
to
9ceefba
Compare
src/main/scala/firrtl/ir/IR.scala
Outdated
pred: Expression, | ||
en: Expression, | ||
msg: StringLit, | ||
@since("FIRRTL 1.5") name: String = "") |
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.
This is super minor, but I think it'd be nice to have a newline between the @since
and name
just so that the types are spaced over so much
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
TODO:
Contributor Checklist
Type of Improvement
API Impact
name
fieldBackend Code Generation Impact
Desired Merge Strategy
Release Notes
Reviewer Checklist (only modified by reviewer)
Please Merge
?