-
Notifications
You must be signed in to change notification settings - Fork 98
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
Change dma bd syntax #1661
Change dma bd syntax #1661
Conversation
Coverage ReportCreated: 2024-08-05 16:14Click here for information about interpreting this report.
Generated by llvm-cov -- llvm version 14.0.0 |
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.
If I understand the LLVM change, the simplest thing is to implement a custom printer which prints the offset if the length is specified. Then we don't require a syntax change.
I'm leery of these ops turning into a string of attributes, although it's arguable that they already are.
Well the |
Another option is to put a keyword on everything in the
|
That at least elides the types compared to using the attribute list. |
This option would have my vote over the attr dict. Both options seem fine though. |
+1 |
It seems like folks would be most happy with, let's call it option 3, which is |
These are the
dma_bd
op syntax changes from #1137. This or something similar is needed to bump mlir, due to upstream printer changes where default valued optional attributes no longer get printed in the same way. e.g. theoffset
operand is not printed when zero. This PR moves everything other thandims
andpad_dims
to the attribute dictionary: