-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Yul: Object contains dialect #15534
Yul: Object contains dialect #15534
Conversation
b19e741
to
a154d0a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also include the part where the dialect is stored in Object
and actually used?
a154d0a
to
a59ec52
Compare
Is it contextualized enough now @cameel? |
Haven't managed to get back to this yet, but I think I'll have some time for that later today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's better now. I can now see why the change is incomplete (the dialect is only needed for the new AST node types), but in that case taking it as far as possible still makes more sense. And removes more code from the original PR.
Overall this looks good, but there's one test helper where the dialect is not being set from the right source.
I also mentioned that the dialect belongs in the AST
and should be passed with it all the way from parsing to printing. I think we should refactor it that way eventually, but it does not have to be now.
a59ec52
to
371647c
Compare
Changes the
yul::Object
to contain itsyul::Dialect
in anticipation of the changes introduced in PR #15347.