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] Cast to AnyRefType for metadata output port. #7149

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

mikeurbach
Copy link
Contributor

We generally type-erase objects at the boundary, to avoid needing to declare the objects' classes as part of the interface. This adds a cast for the metadataObj reference, so we don't have to declare its class as part of the interface. The evaluator and any tooling built on it already know how to "see through" this cast.

We generally type-erase objects at the boundary, to avoid needing to
declare the objects' classes as part of the interface. This adds a
cast for the metadataObj reference, so we don't have to declare its
class as part of the interface. The evaluator and any tooling built on
it already know how to "see through" this cast.
@mikeurbach mikeurbach merged commit 72313e0 into main Jun 10, 2024
4 checks passed
@mikeurbach mikeurbach deleted the mikeurbach/metadata-obj-any branch June 10, 2024 20:13
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.

2 participants