[mlir][python] Apply py::module_local() to all classes.
authorStella Laurenzo <stellaraccident@gmail.com>
Tue, 24 Aug 2021 03:01:07 +0000 (20:01 -0700)
committerStella Laurenzo <stellaraccident@gmail.com>
Tue, 31 Aug 2021 05:18:43 +0000 (22:18 -0700)
commitf05ff4f7570ca009f22f5e2fe8c6361f28faaa8a
treee5c1bbdb97011cad557bb2926884ff7fe31dbcad
parent3419e85b15e35e4b5b4d0cd8153fdbe0958e80c7
[mlir][python] Apply py::module_local() to all classes.

* This allows multiple MLIR-API embedding downstreams to co-exist in the same process.
* I believe this is the last thing needed to enable isolated embedding.

Differential Revision: https://reviews.llvm.org/D108605
mlir/lib/Bindings/Python/ExecutionEngineModule.cpp
mlir/lib/Bindings/Python/IRAffine.cpp
mlir/lib/Bindings/Python/IRAttributes.cpp
mlir/lib/Bindings/Python/IRCore.cpp
mlir/lib/Bindings/Python/MainModule.cpp
mlir/lib/Bindings/Python/Pass.cpp