[all-commits] [llvm/llvm-project] 3f3d1c: [MLIR][Python] Add capsule methods for pybind11 to...

mikeurbach via All-commits all-commits at lists.llvm.org
Tue Apr 27 19:14:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f3d1c901d7abcc5b91468335679b1b27d8a02dd
      https://github.com/llvm/llvm-project/commit/3f3d1c901d7abcc5b91468335679b1b27d8a02dd
  Author: Mike Urbach <mikeurbach at gmail.com>
  Date:   2021-04-27 (Tue, 27 Apr 2021)

  Changed paths:
    M mlir/include/mlir-c/Bindings/Python/Interop.h
    M mlir/lib/Bindings/Python/IRCore.cpp
    M mlir/lib/Bindings/Python/IRModule.h
    A mlir/test/Bindings/Python/ir_value.py

  Log Message:
  -----------
  [MLIR][Python] Add capsule methods for pybind11 to PyValue.

Add the `getCapsule()` and `createFromCapsule()` methods to the
PyValue class, as well as the necessary interoperability.

Reviewed By: stellaraccident

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




More information about the All-commits mailing list