[mlir][Python] Custom python op view wrappers for building and traversing.
authorStella Laurenzo <stellaraccident@gmail.com>
Thu, 22 Oct 2020 06:34:01 +0000 (23:34 -0700)
committerStella Laurenzo <stellaraccident@gmail.com>
Tue, 27 Oct 2020 19:23:34 +0000 (12:23 -0700)
commit013b9322dea9564ac85c4082fb0f07ff093eef63
tree2d1fca4e20e7c3792b78a4b534e2d0fa636611ed
parent78ae1f6c90029c7b213ac6fc01e460f5edb327c9
[mlir][Python] Custom python op view wrappers for building and traversing.

* Still rough edges that need more sugar but the bones are there. Notes left in the test case for things that can be improved.
* Does not actually yield custom OpViews yet for traversing. Will rework that in a followup.

Differential Revision: https://reviews.llvm.org/D89932
mlir/lib/Bindings/Python/CMakeLists.txt
mlir/lib/Bindings/Python/Globals.h [new file with mode: 0644]
mlir/lib/Bindings/Python/IRModules.cpp
mlir/lib/Bindings/Python/IRModules.h
mlir/lib/Bindings/Python/MainModule.cpp
mlir/lib/Bindings/Python/mlir/__init__.py
mlir/lib/Bindings/Python/mlir/dialects/__init__.py [new file with mode: 0644]
mlir/lib/Bindings/Python/mlir/dialects/std.py [new file with mode: 0644]
mlir/lib/Bindings/Python/mlir/ir.py [new file with mode: 0644]
mlir/test/Bindings/Python/dialects.py [new file with mode: 0644]