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

[Types] Use AggregateWireable API to avoid elaboration #1153

Merged
merged 3 commits into from
Oct 11, 2022

Conversation

leonardt
Copy link
Collaborator

Some cases in the repr and insert_wrap_casts logic were unnecessarily expanding arrays. This updates the logic to avoid elaboration when possible, also updating it to use the AggregateWireable API.

Some of the smart_bits tests relied on this elaboration for checking the repr of two circutis, so some code has been added there to force elaboration so the repr works.

Some cases in the repr and insert_wrap_casts logic were unnecessarily
expanding arrays.  This updates the logic to avoid elaboration when
possible, also updating it to use the AggregateWireable API.

Some of the smart_bits tests relied on this elaboration for checking the
repr of two circutis, so some code has been added there to force
elaboration so the repr works.
@leonardt leonardt requested a review from rsetaluri October 11, 2022 19:40
@rsetaluri rsetaluri changed the title Use AggregateWireable API to avoid elaboration [Types] Use AggregateWireable API to avoid elaboration Oct 11, 2022
@leonardt leonardt merged commit 0807db6 into master Oct 11, 2022
@leonardt leonardt deleted the avoid-aggregate-elaboration branch October 11, 2022 21:14
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