MLIR 22.0.0git
mlir::python::PyMlirContext::ErrorCapture Struct Reference

RAII object that captures any error diagnostics emitted to the provided context. More...

#include "Bindings/Python/IRModule.h"

Public Member Functions

 ErrorCapture (PyMlirContextRef ctx)
 ~ErrorCapture ()
std::vector< PyDiagnostic::DiagnosticInfotake ()

Detailed Description

RAII object that captures any error diagnostics emitted to the provided context.

Definition at line 408 of file IRModule.h.

Constructor & Destructor Documentation

◆ ErrorCapture()

mlir::python::PyMlirContext::ErrorCapture::ErrorCapture ( PyMlirContextRef ctx)
inline

◆ ~ErrorCapture()

mlir::python::PyMlirContext::ErrorCapture::~ErrorCapture ( )
inline

Definition at line 413 of file IRModule.h.

References mlirContextDetachDiagnosticHandler().

Member Function Documentation

◆ take()

std::vector< PyDiagnostic::DiagnosticInfo > mlir::python::PyMlirContext::ErrorCapture::take ( )
inline

The documentation for this struct was generated from the following files: