aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Bindings/Python/IRModule.h
diff options
context:
space:
mode:
authorJacques Pienaar <jpienaar@google.com>2024-06-11 07:45:12 -0700
committerGitHub <noreply@github.com>2024-06-11 07:45:12 -0700
commit18cf1cd92b554ba0b870c6a2223ea4d0d3c6dd21 (patch)
treeee7dee0bed298bd1fcf087e2ba3add4aeb0010c5 /mlir/lib/Bindings/Python/IRModule.h
parent38ccee00346300c87abc34860398bc950c65eaec (diff)
downloadllvm-18cf1cd92b554ba0b870c6a2223ea4d0d3c6dd21.zip
llvm-18cf1cd92b554ba0b870c6a2223ea4d0d3c6dd21.tar.gz
llvm-18cf1cd92b554ba0b870c6a2223ea4d0d3c6dd21.tar.bz2
[mlir] Add PDL C & Python usage (#94714)
Following a rather direct approach to expose PDL usage from C and then Python. This doesn't yes plumb through adding support for custom matchers through this interface, so constrained to basics initially. This also exposes greedy rewrite driver. Only way currently to define patterns is via PDL (just to keep small). The creation of the PDL pattern module could be improved to avoid folks potentially accessing the module used to construct it post construction. No ergonomic work done yet. --------- Signed-off-by: Jacques Pienaar <jpienaar@google.com>
Diffstat (limited to 'mlir/lib/Bindings/Python/IRModule.h')
-rw-r--r--mlir/lib/Bindings/Python/IRModule.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mlir/lib/Bindings/Python/IRModule.h b/mlir/lib/Bindings/Python/IRModule.h
index 8c34c11..f49efcd 100644
--- a/mlir/lib/Bindings/Python/IRModule.h
+++ b/mlir/lib/Bindings/Python/IRModule.h
@@ -22,6 +22,7 @@
#include "mlir-c/Diagnostics.h"
#include "mlir-c/IR.h"
#include "mlir-c/IntegerSet.h"
+#include "mlir-c/Transforms.h"
#include "mlir/Bindings/Python/PybindAdaptors.h"
#include "llvm/ADT/DenseMap.h"