OSDN Git Service

Enable python bindings for tensor, shape and linalg dialects.
authorStella Laurenzo <stellaraccident@gmail.com>
Sun, 10 Jan 2021 01:14:47 +0000 (17:14 -0800)
committerStella Laurenzo <stellaraccident@gmail.com>
Mon, 11 Jan 2021 20:35:49 +0000 (12:35 -0800)
commit53c866c286a7ca52bd09c7661d4c532ce5c0def8
treee742b170b8b18d240f5aa3dd9888ecefd89ee651
parentc1ae378205db72cd80a52b85b8474077d1aa5b15
Enable python bindings for tensor, shape and linalg dialects.

* We've got significant missing features in order to use most of these effectively (i.e. custom builders, region-based builders).
* We presently also lack a mechanism for actually registering these dialects but they can be use with contexts that allow unregistered dialects for further prototyping.

Differential Revision: https://reviews.llvm.org/D94368
mlir/cmake/modules/AddMLIRPythonExtension.cmake
mlir/lib/Bindings/Python/CMakeLists.txt
mlir/lib/Bindings/Python/LinalgOps.td [new file with mode: 0644]
mlir/lib/Bindings/Python/ShapeOps.td [new file with mode: 0644]
mlir/lib/Bindings/Python/TensorOps.td [new file with mode: 0644]
mlir/test/Bindings/Python/CMakeLists.txt