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

[Arc] Memory ops: optional enables and folders #4976

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

maerhart
Copy link
Member

Make the enables of the MemoryReadPortOp, MemoryWritePortOp, and MemoryWriteOp optional. Its absence means a constant true enable. Add folders to remove the operand when it is constant true as well as remove the entire operation when the enable is constant false as the writes do not ever happen in this case and the read returns an undefined value.

@maerhart maerhart added the Arc Involving the `arc` dialect label Apr 10, 2023
Make the enables of the MemoryReadPortOp, MemoryWritePortOp, and MemoryWriteOp optional. Its absence means a constant true enable. Add folders to remove the operand when it is constant true as well as remove the entire operation when the enable is constant false as the writes do not ever happen in this case and the read returns an undefined value.
@maerhart maerhart force-pushed the dev/maerhart/arc-optional-memory-enable branch from eda66d7 to 0205a22 Compare April 10, 2023 13:15
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.

Very cool! Thanks for adding this 💯

@maerhart maerhart merged commit 4218926 into main Apr 11, 2023
@maerhart maerhart deleted the dev/maerhart/arc-optional-memory-enable branch April 11, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arc Involving the `arc` dialect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants