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][LowerTypes] Use agg create ops for unlowered users. #5101

Conversation

dtzSiFive
Copy link
Contributor

These are easier to generate and more semantically meaningful
in the IR, compared to the previous bitcast(cat({x_0, ..., x_n})).

This also extends support to work with aggregates of more than
just directly ground types (e.g., vector-of-bundles).

These are easier to generate and more semantically meaningful
in the IR, compared to the previous bitcast(cat({x_0, ..., x_n})).

This also extends support to work with aggregates of more than
just directly ground types (e.g., vector-of-bundles).
Previously we directly did a cast to FIRRTLBaseType,
so explicitly check for that-- also check we're not trying
to create an aggregate of or containing references.

These scenarios should not occur.
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.

Awesome, thanks!

@dtzSiFive dtzSiFive merged commit 1d6e5cc into llvm:main Apr 28, 2023
@dtzSiFive dtzSiFive deleted the feature/use-agg-create-ops-for-source-materialization-in-lower-types branch April 28, 2023 15:08
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.

3 participants