Lines Matching refs:pyRef
487 py::object pyRef = py::cast(unownedContextWrapper); in forContext() local
488 assert(pyRef && "cast to py::object failed"); in forContext()
490 return PyMlirContextRef(unownedContextWrapper, std::move(pyRef)); in forContext()
493 py::object pyRef = py::cast(it->second); in forContext() local
494 return PyMlirContextRef(it->second, std::move(pyRef)); in forContext()
888 py::object pyRef = in forModule() local
890 unownedModule->handle = pyRef; in forModule()
893 return PyModuleRef(unownedModule, std::move(pyRef)); in forModule()
897 py::object pyRef = py::reinterpret_borrow<py::object>(it->second.first); in forModule() local
898 return PyModuleRef(existing, std::move(pyRef)); in forModule()
942 py::object pyRef = in createInstance() local
944 unownedOperation->handle = pyRef; in createInstance()
948 liveOperations[operation.ptr] = std::make_pair(pyRef, unownedOperation); in createInstance()
949 return PyOperationRef(unownedOperation, std::move(pyRef)); in createInstance()
964 py::object pyRef = py::reinterpret_borrow<py::object>(it->second.first); in forOperation() local
965 return PyOperationRef(existing, std::move(pyRef)); in forOperation()