raviqqe / melior

The rustic MLIR bindings in Rust
https://raviqqe.github.io/melior/melior/
Apache License 2.0
322 stars 40 forks source link

PDL API #260

Open raviqqe opened 1 year ago

raviqqe commented 1 year ago

Problem

Solution

Proposing the C API for PDL

Extending mlir-sys

TBD

References

Danacus commented 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:

Danacus commented 1 year ago

I've submitted a revision to LLVM: https://reviews.llvm.org/D156021

raviqqe commented 1 year ago

Thank you so much!