llvm-capstone/mlir/python
Alex Zinenko 1f8618f88c [mlir] python enum bindings generator
Add an ODS (tablegen) backend to generate Python enum classes and
attribute builders for enum attributes defined in ODS. This will allow
us to keep the enum attribute definitions in sync between C++ and
Python, as opposed to handwritten enum classes in Python that may end up
using mismatching values. This also makes autogenerated bindings more
convenient even in absence of mixins.

Use this backend for the transform dialect failure propagation mode enum
attribute as demonstration.

Reviewed By: ingomueller-net

Differential Revision: https://reviews.llvm.org/D156553
2023-07-31 15:42:56 +00:00
..
mlir [mlir] python enum bindings generator 2023-07-31 15:42:56 +00:00
CMakeLists.txt [mlir] python enum bindings generator 2023-07-31 15:42:56 +00:00
requirements.txt [mlir][python] Bump min pybind11 version to 2.9.0 2023-05-23 13:51:40 -04:00