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] Fixup visit ops miscategorized. #6896

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

dtzSiFive
Copy link
Contributor

FPGAProbeIntrinsicOp is not an expression (not pure and no results!), mlir::UnrealizedConversionCast is only sometimes expression-like (and FIRRTLVisitor is for visiting FIRRTL-dialect operations only), and GenericIntrinsicOp is neither expression nor statement so just add a special visitor for it.

Update passes using visitors to reflect these changes.

FPGAProbeIntrinsicOp is not an expression (not pure and no results!),
mlir::UnrealizedConversionCast is only sometimes expression-like
(and FIRRTLVisitor is for visiting FIRRTL-dialect operations only),
and GenericIntrinsicOp is neither expression nor statement so just
add a special visitor for it.

Update passes using visitors to reflect these changes.
@dtzSiFive dtzSiFive force-pushed the feature/firrtl-visitor-touchups branch from 5779a30 to d9c42a0 Compare April 4, 2024 14:12
Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

LGTM

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!

@dtzSiFive dtzSiFive merged commit be0843e into llvm:main Apr 4, 2024
4 checks passed
@dtzSiFive dtzSiFive deleted the feature/firrtl-visitor-touchups branch April 4, 2024 16:33
@dtzSiFive
Copy link
Contributor Author

Thanks, all!

cepheus69 pushed a commit to cepheus69/circt that referenced this pull request Apr 22, 2024
FPGAProbeIntrinsicOp is not an expression (not pure and no results!),
mlir::UnrealizedConversionCast is only sometimes expression-like
(and FIRRTLVisitor is for visiting FIRRTL-dialect operations only),
and GenericIntrinsicOp is neither expression nor statement so just
add a special visitor for it.

Update passes using visitors to reflect these changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants