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

[MooreToCore] Lower the unpacked array type to hw.array #7893

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

slowlime
Copy link

This add a type conversion for unpacked arrays, mapping them to hw.array. The approach is analogous to how unpacked structs are currently handled.

As far as I understand, hw.uarray would be more appropriate in the future, especially once it's moved to SV. However, no operation accepts this type yet. I'm not sure what the consensus is as to whether the operation set should be extended to accommodate unpacked arrays (by adding new operations or "overloading" existing ones that deal with hw.arrays). Using packed arrays for the time being sidesteps this question.

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! Thanks for adding this 👍. I like the idea of just treating unpacked arrays as packed for now, and then build out the subtle differences later on.

@fabianschuiki
Copy link
Contributor

Feel free to get LLVM commit access such that the CI builds for your PRs run automatically and you can merge your own PRs one you've gotten reviews and are happy with everything 🙂.

The semantics do not exactly align between these two types, but they do
match closely enough. There is also `hw.uarray`, which could seem like a
more suitable choice; however, there are no operations defined for this
type yet.
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