[mlir] Introduce Python bindings for the PDL dialect
authorDenys Shabalin <shabalin@google.com>
Thu, 13 Jan 2022 09:53:21 +0000 (10:53 +0100)
committerDenys Shabalin <shabalin@google.com>
Wed, 19 Jan 2022 10:19:56 +0000 (11:19 +0100)
commited21c9276a4cc88d60cbaddc56132b1793ca30c7
tree5953257ab6b137a945855b8a714ae0ef3a224ee5
parenta8890995ee67e0949b3d67da90a32e712fba1396
[mlir] Introduce Python bindings for the PDL dialect

This change adds full python bindings for PDL, including types and operations
with additional mixins to make operation construction more similar to the PDL
syntax.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D117458
12 files changed:
mlir/include/mlir-c/Dialect/PDL.h
mlir/lib/Bindings/Python/DialectPDL.cpp [new file with mode: 0644]
mlir/lib/CAPI/Dialect/PDL.cpp
mlir/python/CMakeLists.txt
mlir/python/mlir/_mlir_libs/_mlir/dialects/pdl.pyi [new file with mode: 0644]
mlir/python/mlir/dialects/PDLOps.td [new file with mode: 0644]
mlir/python/mlir/dialects/_ods_common.py
mlir/python/mlir/dialects/_pdl_ops_ext.py [new file with mode: 0644]
mlir/python/mlir/dialects/pdl.py [new file with mode: 0644]
mlir/test/CAPI/pdl.c
mlir/test/python/dialects/pdl_ops.py [new file with mode: 0644]
mlir/test/python/dialects/pdl_types.py [new file with mode: 0644]