-
Notifications
You must be signed in to change notification settings - Fork 9
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
handle multiple optional operands #81
Conversation
Do you mind running the formatter? That way we can check out more easily if the bug is solved. |
I ran the formatter using format(".", JuliaFormatter.BlueStyle()) and the ternary operators haven't been replaced by if-else statements. Not sure whether that's good or bad. |
That's okay: it's how we have it right now. |
I've now pushed dialects for all versions except 18 because I'm not sure how to actually do that. |
src/Dialects/14/PDL.jl
Outdated
operands::Vector{Value}, | ||
attributes::Vector{Value}, |
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.
Are these renames intentional?
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, that change was introduced here #74 to fix e.g.
MLIR.jl/src/Dialects/18/LLVMIR.jl
Line 366 in b355c7a
!isnothing(results) && push!(results, results) |
It looks like the dialects for LLVM18 weren't generated using the newest generator.
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.
Ah yeah, in that case wouldn't be better to prioritize a clean interface? (i.e. to use _results
as the variable inside and results
as the kwarg).
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 should be the case now.
Actually with just the |
you mean to not yet include the generated dialects for LLVM18? or also get rid of the other versions in this PR? |
Exactly, we can generate it with |
For now I've only included the generated files EDIT: nvm, I added the other versions as well to check CI. |
Green! |
Great! Thanks @jumerckx! |
for example
openacc.enter_data
:There's a trailing comma in the list now but that should be no problem.