This is an archive of the discontinued LLVM Phabricator instance.

[mlir][python] Include pipeline parse errors in exception message
ClosedPublic

Authored by rkayaith on Oct 20 2022, 5:36 PM.

Details

Summary

Currently any errors during pipeline parsing are reported to stderr.
This adds a new pipeline parsing function to the C api that reports
errors through a callback, and updates the python bindings to use it.

Diff Detail

Event Timeline

rkayaith created this revision.Oct 20 2022, 5:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 20 2022, 5:36 PM
rkayaith updated this revision to Diff 469445.Oct 20 2022, 6:29 PM
rkayaith edited the summary of this revision. (Show Details)

update description

rkayaith published this revision for review.Oct 20 2022, 6:42 PM
rkayaith added a reviewer: mehdi_amini.
rkayaith added inline comments.
mlir/lib/CAPI/IR/Pass.cpp
85–86

i'll fix this in D136403

mehdi_amini accepted this revision.Oct 24 2022, 5:53 PM
This revision is now accepted and ready to land.Oct 24 2022, 5:53 PM
rkayaith updated this revision to Diff 470909.Oct 26 2022, 1:07 PM

add capi test for error capture, rebase