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] Optionally look through casts for fieldref chasing. #6093

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

dtzSiFive
Copy link
Contributor

Don't do this by default, as code reasonably expects the returned FieldRef has expected type if indexed to the specified fieldID, however when this is used for producing names just walk through the cast operations to find the originating declaration.

Don't do this by default, as code reasonably expects the returned
FieldRef has expected type if indexed to the specified fieldID,
however when this is used for producing names just walk through
the cast operations to find the originating declaration.
Copy link
Contributor

@mikeurbach mikeurbach left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me.

@dtzSiFive
Copy link
Contributor Author

Thanks!

@dtzSiFive dtzSiFive merged commit 774ffd1 into llvm:main Sep 12, 2023
5 checks passed
@dtzSiFive dtzSiFive deleted the feature/getfieldref-through-casts branch September 12, 2023 17:46
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.

None yet

2 participants