2 Commits

Author SHA1 Message Date
Johannes Reifferscheid
15495b8cd4
[mlir] Fix unused-variable warning w/o assertions. (#99489) 2024-07-18 15:20:57 +02:00
Fehr Mathieu
5f8c46b887
[mlir] Add RewriterBase to the C API (#98962)
This exposes most of the `RewriterBase` methods to the C API.
This allows to manipulate both the `IRRewriter` and the
`PatternRewriter`. The
`IRRewriter` can be created from the C API, while the `PatternRewriter`
cannot.

The missing operations are the ones taking `Block::iterator` and
`Region::iterator` as
parameters, as they are not exposed by the C API yet AFAIK.

The Python bindings for these methods and classes are not implemented.
2024-07-16 20:37:11 +01:00