Open raviqqe opened 1 year ago
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:
pdl
dialect (or pdl-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?mlir-pdll
command?I've submitted a revision to LLVM: https://reviews.llvm.org/D156021
Thank you so much!
Problem
Solution
Proposing the C API for PDL
Extending
mlir-sys
References