Skip to content

[mlir][python] Include diagnostic messages in exceptions #60595

@rkayaith

Description

@rkayaith

Currently diagnostics from parsing, running pipelines, op verification etc. end up on stderr. These can instead be captured using the diagnostic engine bindings, and included in the python exception message. See this (and similar) TODOs:

// TODO: Rework error reporting once diagnostic engine is exposed
// in C API.

Metadata

Metadata

Assignees

Labels

enhancementImproving things as opposed to bug fixing, e.g. new or missing featuremlir:pythonMLIR Python bindings

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions