[mlir] Split out Python bindings entry point into a separate file
authorAlex Zinenko <zinenko@google.com>
Thu, 22 Apr 2021 15:32:10 +0000 (17:32 +0200)
committerAlex Zinenko <zinenko@google.com>
Thu, 29 Apr 2021 09:18:25 +0000 (11:18 +0200)
commitac0a70f3737ecb2c0586c00240d14e46ff00644e
tree6663047c3039a22e043a96175d179a38a68fb4d3
parent54ee962e4795cd00a379e560727dff7ea0743765
[mlir] Split out Python bindings entry point into a separate file

This will allow the bindings to be built as a library and reused in out-of-tree
projects that want to provide bindings on top of MLIR bindings.

Reviewed By: stellaraccident, mikeurbach

Differential Revision: https://reviews.llvm.org/D101075
mlir/lib/Bindings/Python/CMakeLists.txt
mlir/lib/Bindings/Python/IRModule.cpp [new file with mode: 0644]
mlir/lib/Bindings/Python/MainModule.cpp