Lines Matching refs:PyDiagnosticHandler
529 PyDiagnosticHandler *pyHandler = in attachDiagnosticHandler()
530 new PyDiagnosticHandler(get(), std::move(callback)); in attachDiagnosticHandler()
543 auto *pyHandler = static_cast<PyDiagnosticHandler *>(userData); in attachDiagnosticHandler()
562 auto *pyHandler = static_cast<PyDiagnosticHandler *>(userData); in attachDiagnosticHandler()
736 PyDiagnosticHandler::PyDiagnosticHandler(MlirContext context, in PyDiagnosticHandler() function in PyDiagnosticHandler
740 PyDiagnosticHandler::~PyDiagnosticHandler() = default;
742 void PyDiagnosticHandler::detach() { in detach()
2221 py::class_<PyDiagnosticHandler>(m, "DiagnosticHandler", py::module_local()) in populateIRCore()
2222 .def("detach", &PyDiagnosticHandler::detach) in populateIRCore()
2223 .def_property_readonly("attached", &PyDiagnosticHandler::isAttached) in populateIRCore()
2224 .def_property_readonly("had_error", &PyDiagnosticHandler::getHadError) in populateIRCore()
2225 .def("__enter__", &PyDiagnosticHandler::contextEnter) in populateIRCore()
2226 .def("__exit__", &PyDiagnosticHandler::contextExit); in populateIRCore()