[all-commits] [llvm/llvm-project] 7ee25b: [mlir][python] Add bindings for diagnostic handler.

Stella Laurenzo via All-commits all-commits at lists.llvm.org
Tue Jan 4 11:12:20 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ee25bc56f92495eb6d289b5ec18a07f27f1f44b
  Author: Stella Laurenzo <stellaraccident at gmail.com>
  Date:   2022-01-04 (Tue, 04 Jan 2022)

  Changed paths:
    M mlir/lib/Bindings/Python/IRCore.cpp
    M mlir/lib/Bindings/Python/IRModule.h
    M mlir/python/mlir/_mlir_libs/_mlir/ir.pyi
    A mlir/test/python/ir/diagnostic_handler.py

  Log Message:
  [mlir][python] Add bindings for diagnostic handler.

I considered multiple approaches for this but settled on this one because I could make the lifetime management work in a reasonably easy way (others had issues with not being able to cast to a Python reference from a C++ constructor). We could stand to have more formatting helpers, but best to get the core mechanism in first.

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

More information about the All-commits mailing list