You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Somewhat surprisingly this pass pipeline is not valid according to the pipeline parser, it tells me to add , at the end after func.func(...). At the same time if you do add that comma, it errors as well since there is no valid pass name after the comma.
As a workaround I added a dummy pass that does nothing just to make it happy:
An user might want to add extra spaces for better readability, e.g:
```
mypm = pm.PassManager.parse(f"""builtin.module(
mypass1,
func.func(mypass2,mypass3)
)""")
```
GitHub issue #59151
The parser was not taking into account the possibility of spaces after
`)`or `}`
Differential Revision: https://reviews.llvm.org/D142821
@River707 you can close this issue, the commit fixes it (Poor choice of wording on my part, but I was unsure how the info in the review process would land in the commit)
I'm currently working on a project that invokes an MLIR pass pipeline using Python bindings:
Somewhat surprisingly this pass pipeline is not valid according to the pipeline parser, it tells me to add
,
at the end afterfunc.func(...)
. At the same time if you do add that comma, it errors as well since there is no valid pass name after the comma.As a workaround I added a dummy pass that does nothing just to make it happy:
It would be great if this was not necessary in the first place, and parser accepted the initial snippet right away.
The text was updated successfully, but these errors were encountered: