Home
last modified time | relevance | path

Searched refs:pyHandler (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Bindings/Python/
H A DIRCore.cpp529 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()
[all …]