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

[RTG] Add immediate type and attribute #8314

Merged
merged 1 commit into from
Apr 1, 2025
Merged

Conversation

maerhart
Copy link
Member

This adds an immediate type and attribute that support any bitwidth and will replace the immediate types and attributes in the RTGTest dialect. They are common for all ISAs and by adding it to RTG it is not necessary to have this duplicated for all ISA payload dialects. Also adds a constant operation that can create an SSA value for any typed attribute. I also moved the labels type to form a kind of ISA subdialect with the immediates and made that explicit in the textual IR. We can do the same for relevant ops in the future.

@maerhart maerhart added the RTG Involving the `rtg` dialect label Mar 13, 2025
@maerhart maerhart requested review from youngar and darthscsi March 13, 2025 12:15
@maerhart maerhart force-pushed the maerhart-rtg-immediate-types branch from 9f7d4b0 to d3ab00e Compare March 28, 2025 12:47
This adds an immediate type and attribute that support any bitwidth and will replace the immediate types and attributes in the RTGTest dialect. Also adds a constant operation that can create an SSA value for any typed attribute. I also moved the labels type to form a kind of ISA subdialect with the immediates and made that explicit in the textual IR. We can do the same for relevant ops in the future.
@maerhart maerhart force-pushed the maerhart-rtg-immediate-types branch from d3ab00e to 3a212ca Compare March 28, 2025 14:31
@maerhart maerhart merged commit 1db8b4d into main Apr 1, 2025
5 checks passed
@maerhart maerhart deleted the maerhart-rtg-immediate-types branch April 1, 2025 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RTG Involving the `rtg` dialect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants