Skip to content

Conversation

@youngar
Copy link
Member

@youngar youngar commented Jul 23, 2025

TagExtractOp's type inference predates adding user-defined encodings for enums in FIRRTL. This fixes the issue by using the bitwidth helpers defined on the enumeration type.

@youngar youngar requested a review from darthscsi as a code owner July 23, 2025 04:55
@youngar youngar added the FIRRTL Involving the `firrtl` dialect label Jul 23, 2025
@youngar youngar requested a review from seldridge as a code owner July 23, 2025 04:55
Copy link
Member

@uenoku uenoku left a comment

Choose a reason for hiding this comment

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

LGTM

TagExtractOp's type inference predates adding user-defined encodings for
enums in FIRRTL. This fixes the issue by using the bitwidth helpers
defined on the enumeration type.
@youngar youngar force-pushed the firrtl-enum-tagextract-typeinference branch from 5515247 to e6a683b Compare July 23, 2025 18:38
Copy link
Contributor

@dtzSiFive dtzSiFive left a comment

Choose a reason for hiding this comment

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

LGTM! 💯

@youngar youngar merged commit 237f744 into llvm:main Jul 23, 2025
7 checks passed
@youngar youngar deleted the firrtl-enum-tagextract-typeinference branch July 23, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FIRRTL Involving the `firrtl` dialect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants