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

interpreters: (irdl) generate better op name #3529

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

alexarice
Copy link
Collaborator

Fixes #3527
Stacked but can be unstacked

Copy link
Member

@superlopuh superlopuh left a comment

Choose a reason for hiding this comment

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

Let's unstack

@superlopuh
Copy link
Member

Oh and let's fix the test also to remove the cmath check

@alexarice
Copy link
Collaborator Author

Let's unstack

Might be easier just to deal with one PR at a time on second thoughts

@superlopuh
Copy link
Member

Your call

Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.37%. Comparing base (2479bdd) to head (6659aad).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3529   +/-   ##
=======================================
  Coverage   90.37%   90.37%           
=======================================
  Files         466      466           
  Lines       58561    58561           
  Branches     5585     5585           
=======================================
  Hits        52926    52926           
  Misses       4206     4206           
  Partials     1429     1429           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@math-fehr math-fehr left a comment

Choose a reason for hiding this comment

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

Nice!
Actually I'm wondering if we should not move get_op_name to OperationOp directly?
Just to make it more easily discoverable, since it is only a few lines of code anyway

@superlopuh
Copy link
Member

I like that a lot, although in that case I'd call it something like get_py_class_name

@superlopuh
Copy link
Member

It definitely seems easier to unstack at this point, as the location and name of the op may need to be changed for both PRs...

@alexarice
Copy link
Collaborator Author

I'm not sure I understand unstacking. To me it makes sense to fix up the other PR, get it merged, then rebase/remake this one

@superlopuh
Copy link
Member

Maybe it's just that they have conflicts that makes it confusing, it's just that I looked at this PR and commented here on something that should actually be changed in the other PR.

@alexarice
Copy link
Collaborator Author

By unstack did you mean make the 2 PRs into 1 PR?

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@alexarice alexarice marked this pull request as draft December 2, 2024 09:45
@superlopuh
Copy link
Member

Yep sorry I thought that's what you meant.

Base automatically changed from alexarice/irdl-to-pyrdl-name to main December 2, 2024 10:06
@alexarice alexarice marked this pull request as ready for review December 2, 2024 10:06
@alexarice
Copy link
Collaborator Author

For some reason I thought you meant to make 2 completely separate PRs which both add the new function separately, sorry again for the confusion

@alexarice
Copy link
Collaborator Author

The diff here isn't correct, I'll sort it out

@superlopuh
Copy link
Member

That's my bad for assuming what you meant!

@alexarice alexarice force-pushed the alexarice/irdl-interpreter-op-name branch from 87d56c8 to 6659aad Compare December 2, 2024 10:11
@alexarice
Copy link
Collaborator Author

Diff looks better now

@alexarice alexarice merged commit 6328693 into main Dec 2, 2024
15 checks passed
@alexarice alexarice deleted the alexarice/irdl-interpreter-op-name branch December 2, 2024 10:28
EdmundGoodman pushed a commit to EdmundGoodman/xdsl that referenced this pull request Dec 6, 2024
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.

misc: generate class names that satisfy our coding convention in irdl.mlir file loading
3 participants