[MLIR][python bindings] Expose TypeIDs in python
authormax <maksim.levental@gmail.com>
Mon, 22 May 2023 16:12:53 +0000 (11:12 -0500)
committermax <maksim.levental@gmail.com>
Mon, 22 May 2023 18:19:54 +0000 (13:19 -0500)
commitd39a7844028bcdd28f72b0e69becc9c49b8fd283
tree7ba86484bf023757d0f8a76c76d1b30036a64485
parenta7c5cf226024e246501aa2b66350c3f922acc0cb
[MLIR][python bindings] Expose TypeIDs in python

This diff adds python bindings for `MlirTypeID`. It paves the way for returning accurately typed `Type`s from python APIs (see D150927) and then further along building type "conscious" `Value` APIs (see D150413).

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D150839
mlir/include/mlir-c/Bindings/Python/Interop.h
mlir/include/mlir-c/BuiltinTypes.h
mlir/include/mlir/Bindings/Python/PybindAdaptors.h
mlir/lib/Bindings/Python/IRCore.cpp
mlir/lib/Bindings/Python/IRModule.h
mlir/lib/Bindings/Python/IRTypes.cpp
mlir/lib/CAPI/IR/BuiltinTypes.cpp
mlir/python/mlir/dialects/python_test.py
mlir/test/python/dialects/python_test.py
mlir/test/python/ir/builtin_types.py
mlir/test/python/lib/PythonTestModule.cpp