-
Notifications
You must be signed in to change notification settings - Fork 143
dialects: (llvm) Implement custom format for FuncOp #5588
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5588 +/- ##
==========================================
- Coverage 86.16% 86.15% -0.02%
==========================================
Files 394 394
Lines 56390 56461 +71
Branches 6496 6514 +18
==========================================
+ Hits 48588 48642 +54
- Misses 6269 6279 +10
- Partials 1533 1540 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Note to self: Increase coverage |
|
Todo:
|
xdsl/dialects/llvm.py
Outdated
| sym_visibility=visibility, | ||
| body=region, | ||
| other_props={ | ||
| **(extra_attrs.data if extra_attrs else {}), |
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.
Shouldn't this be set as attributes? Can you please add a test for this?
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.
Resolved: 6f2b588 (I believe)?
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.
Not quite, can you please add an attribute dictionary with something like {hello = "world} and test that it's parsed and re-printed correctly?
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.
Thank you for the clear example - now I suddenly see what you meant!
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.
Resolved: f120376
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.
were these changes intended to be included in this PR?
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.
They could be a seperate PR where I just try to maximize coverage. I agree. This is getting very confusing.
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.
Hmm, I'm wondering what you mean. Do you mean coverage of the llvm.py file, or the diff for adding custom syntax for llvm functions? If coverage of llvm.py, then that's great but should be in a separate PR. The pytest tests don't depend on custom syntax for llvm.func
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.
Yes - the coverage of the llvm.py file. I'll revert the unnecessary tests here and make a new PR
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.
Resolved: #5603
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.
this seems like a spurious change?
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.
This was intentional - just aggressively trying to maximize coverage. But it's a bit pointless.
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.
Resolved: 7f17ee4
# Conflicts: # tests/filecheck/dialects/llvm/func.mlir # tests/filecheck/mlir-conversion/with-mlir/dialects/llvm/func.mlir
|
Moved the pretty This PR should be more focused now. Will resolve open comments within this PR now. |
Allows not just generic format:
But also a prettier custom format: