Lines Matching refs:PyModule
863 PyModule::PyModule(PyMlirContextRef contextRef, MlirModule module) in PyModule() function in PyModule
866 PyModule::~PyModule() { in ~PyModule()
875 PyModuleRef PyModule::forModule(MlirModule module) { in forModule()
884 PyModule *unownedModule = new PyModule(std::move(contextRef), module); in forModule()
896 PyModule *existing = it->second.second; in forModule()
901 py::object PyModule::createFromCapsule(py::object capsule) { in createFromCapsule()
908 py::object PyModule::getCapsule() { in getCapsule()
2480 py::class_<PyModule>(m, "Module", py::module_local()) in populateIRCore()
2481 .def_property_readonly(MLIR_PYTHON_CAPI_PTR_ATTR, &PyModule::getCapsule) in populateIRCore()
2482 .def(MLIR_PYTHON_CAPI_FACTORY_ATTR, &PyModule::createFromCapsule) in populateIRCore()
2495 return PyModule::forModule(module).releaseObject(); in populateIRCore()
2503 return PyModule::forModule(module).releaseObject(); in populateIRCore()
2508 [](PyModule &self) { return self.getContext().getObject(); }, in populateIRCore()
2512 [](PyModule &self) { in populateIRCore()
2521 [](PyModule &self) { in populateIRCore()
2531 [](PyModule &self) { in populateIRCore()