Skip to content
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

[FIRRTL] Add IsTagOp to test enumeration variant #5038

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

youngar
Copy link
Member

@youngar youngar commented Apr 13, 2023

This adds an IsTagOp which tests the active variant of an enumeration for a specific tag and returns 1 if they match, 0 otherwise. This op will be used to lower match statements in to a mux-like format. This op should only be used internally in the compiler, and there are no plans to expose this operation in the FIRRTL frontend language.

This adds an `IsTagOp` which tests the active variant of an enumeration
for a specific tag and returns 1 if they match, 0 otherwise.  This op
will be used to lower match statements in to a mux-like format.  This op
should only be used internally in the compiler, and there are no plans
to expose this operation in the FIRRTL frontend language.
@youngar youngar added the FIRRTL Involving the `firrtl` dialect label Apr 13, 2023
@youngar youngar merged commit 3451c08 into llvm:main Apr 13, 2023
@youngar youngar deleted the firrtl-istagop branch April 13, 2023 23:25
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.

1 participant