Lines Matching refs:contextRef
863 PyModule::PyModule(PyMlirContextRef contextRef, MlirModule module) in PyModule() argument
864 : BaseContextObject(std::move(contextRef)), module(module) {} in PyModule()
877 PyMlirContextRef contextRef = PyMlirContext::forContext(context); in forModule() local
880 auto &liveModules = contextRef->liveModules; in forModule()
884 PyModule *unownedModule = new PyModule(std::move(contextRef), module); in forModule()
916 PyOperation::PyOperation(PyMlirContextRef contextRef, MlirOperation operation) in PyOperation() argument
917 : BaseContextObject(std::move(contextRef)), operation(operation) {} in PyOperation()
932 PyOperationRef PyOperation::createInstance(PyMlirContextRef contextRef, in createInstance() argument
935 auto &liveOperations = contextRef->liveOperations; in createInstance()
938 new PyOperation(std::move(contextRef), operation); in createInstance()
952 PyOperationRef PyOperation::forOperation(PyMlirContextRef contextRef, in forOperation() argument
955 auto &liveOperations = contextRef->liveOperations; in forOperation()
959 return createInstance(std::move(contextRef), operation, in forOperation()
968 PyOperationRef PyOperation::createDetached(PyMlirContextRef contextRef, in createDetached() argument
971 auto &liveOperations = contextRef->liveOperations; in createDetached()
976 PyOperationRef created = createInstance(std::move(contextRef), operation, in createDetached()
3040 auto contextRef = PyMlirContext::forContext( in populateIRCore() local
3042 return PyAttribute(std::move(contextRef), self.namedAttr.attribute); in populateIRCore()