[mlir] Introduce Python bindings for the quantization dialect
authorAlex Zinenko <zinenko@google.com>
Tue, 4 Jan 2022 16:43:44 +0000 (17:43 +0100)
committerAlex Zinenko <zinenko@google.com>
Wed, 5 Jan 2022 15:26:31 +0000 (16:26 +0100)
commit66d4090d9b15d0fd61e9c398df2fcb79dd9e0665
treeaf41154a2897811525fb98d0706dd30d4550a95a
parentb2f34d6af1b814734518539542dbae5b599b0ef3
[mlir] Introduce Python bindings for the quantization dialect

So far, only the custom dialect types are exposed.

The build and packaging is same as for Linalg and SparseTensor, and in
need of refactoring that is beyond the scope of this patch.

Reviewed By: stellaraccident

Differential Revision: https://reviews.llvm.org/D116605
mlir/include/mlir/Bindings/Python/PybindAdaptors.h
mlir/lib/Bindings/Python/DialectQuant.cpp [new file with mode: 0644]
mlir/lib/Bindings/Python/Dialects.h
mlir/lib/Bindings/Python/MainModule.cpp
mlir/python/CMakeLists.txt
mlir/python/mlir/_mlir_libs/_mlir/dialects/quant.pyi [new file with mode: 0644]
mlir/python/mlir/dialects/quant.py [new file with mode: 0644]
mlir/test/python/dialects/quant.py [new file with mode: 0644]
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel