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][Elaboration] Add support for arith constants #7890

Draft
wants to merge 1 commit into
base: maerhart-rtg-elaboration-debug-printing
Choose a base branch
from

Conversation

maerhart
Copy link
Member

This prepares for !rtg.bag support in the elaboration pass which requires us to interpret index values.

I've added a visitor for Arith ops to the RTG dialect since this visitor pattern is not used upstream. It probably doesn't make sense to upstream this due to what @youngar mentioned in #7855 (review)

@maerhart maerhart added the RTG Involving the `rtg` dialect label Nov 25, 2024
@maerhart maerhart marked this pull request as draft December 3, 2024 22:03
Copy link
Contributor

@darthscsi darthscsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please upstream the ArithOpVisitor. Otherwise LGTM.

FailureOr<DeletionKind>
dispatchOpVisitor(Operation *op,
function_ref<void(Operation *)> addToWorklist) {
if (op->getDialect() == op->getContext()->getLoadedDialect<RTGDialect>())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sigh. I don't suppose we can get around this.

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.

2 participants