PDL API
Opened this issue ยท 3 comments
raviqqe commented
Danacus commented
We don't really need PDL dialect constructors, since PDL patterns can be written in PDLL and can be converted to the PDL dialect with mlir-pdll
.
I think we should either request additions to the C API upstream in MLIR, or implement them in a separate crate with API extensions.
Some additional considerations:
- How expressive is the
pdl
dialect (orpdl-interp
)? Are there patterns that can only be expressed using C++RewritePattern
s? If so, would it be useful to be able to write such patterns in Rust? - Would it be useful to expose an API in MLIR to compile PDLL and avoid needing to run the
mlir-pdll
command?
Danacus commented
I've submitted a revision to LLVM: https://reviews.llvm.org/D156021
raviqqe commented
Thank you so much!