[all-commits] [llvm/llvm-project] b3c5f6: [mlir][python] Include pipeline parse errors in ex...

rk via All-commits all-commits at lists.llvm.org
Thu Oct 27 10:05:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3c5f6b15b1eaa2552ce62329208ece5166356fe
      https://github.com/llvm/llvm-project/commit/b3c5f6b15b1eaa2552ce62329208ece5166356fe
  Author: rkayaith <rkayaith at gmail.com>
  Date:   2022-10-27 (Thu, 27 Oct 2022)

  Changed paths:
    M mlir/include/mlir-c/Pass.h
    M mlir/lib/Bindings/Python/Pass.cpp
    M mlir/lib/CAPI/IR/Pass.cpp
    M mlir/test/CAPI/pass.c
    M mlir/test/python/pass_manager.py

  Log Message:
  -----------
  [mlir][python] Include pipeline parse errors in exception message

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.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D136402




More information about the All-commits mailing list