Lines Matching refs:pyHandler
529 PyDiagnosticHandler *pyHandler = in attachDiagnosticHandler() local
532 py::cast(pyHandler, py::return_value_policy::take_ownership); in attachDiagnosticHandler()
543 auto *pyHandler = static_cast<PyDiagnosticHandler *>(userData); in attachDiagnosticHandler() local
550 result = py::cast<bool>(pyHandler->callback(pyDiagnostic)); in attachDiagnosticHandler()
554 pyHandler->hadError = true; in attachDiagnosticHandler()
562 auto *pyHandler = static_cast<PyDiagnosticHandler *>(userData); in attachDiagnosticHandler() local
563 assert(pyHandler->registeredID && "handler is not registered"); in attachDiagnosticHandler()
564 pyHandler->registeredID.reset(); in attachDiagnosticHandler()
568 py::cast(pyHandler, py::return_value_policy::reference); in attachDiagnosticHandler()
572 pyHandler->registeredID = mlirContextAttachDiagnosticHandler( in attachDiagnosticHandler()
573 get(), handlerCallback, static_cast<void *>(pyHandler), deleteCallback); in attachDiagnosticHandler()