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

[HW][HWModules] Add ability to set/erase port symbols. #5724

Merged
merged 1 commit into from
Jul 31, 2023

Conversation

dtzSiFive
Copy link
Contributor

This should be added to an interface shared elsewhere, (and with different signature suitable to per-field syms) but for now keep this on the HW module ops.

The hw.exportPort string literal is used on HW ops to store the inner symbol (getArgSym, so on).

Also, since the code for HWModule ops in particular already hardcodes use of hw.exportPort, change the getter to look for the port symbol under that name specifically.

This should be added to an interface shared elsewhere,
(and with different signature suitable to per-field syms)
but for now keep this on the HW module ops.

The `hw.exportPort` string literal is used on HW ops
to store the inner symbol (`getArgSym`, so on).

Also, since the code for HWModule ops in particular already
hardcodes use of `hw.exportPort`, change the getter to
look for the port symbol under that name specifically.
@dtzSiFive dtzSiFive merged commit 2281bd1 into llvm:main Jul 31, 2023
5 checks passed
@dtzSiFive dtzSiFive deleted the feature/hwmodules-setportsym branch July 31, 2023 16:08
@dtzSiFive
Copy link
Contributor Author

cc @darthscsi and @youngar re:touching/thinking about these things, esp in HW. Post-merge review/thoughts welcome 👍 .

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