[all-commits] [llvm/llvm-project] 543922: Adds MLIR C-API for marshaling Python capsules.

Stella Laurenzo via All-commits all-commits at lists.llvm.org
Tue Sep 29 10:49:39 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 543922cd3630ca3a1e06a6a946d148bc0e22e720
      https://github.com/llvm/llvm-project/commit/543922cd3630ca3a1e06a6a946d148bc0e22e720
  Author: Stella Laurenzo <stellaraccident at gmail.com>
  Date:   2020-09-29 (Tue, 29 Sep 2020)

  Changed paths:
    A mlir/include/mlir-c/Bindings/Python/Interop.h
    M mlir/include/mlir-c/IR.h
    M mlir/lib/Bindings/Python/IRModules.cpp
    M mlir/lib/Bindings/Python/IRModules.h
    M mlir/test/Bindings/Python/context_lifecycle.py
    M mlir/test/Bindings/Python/ir_module.py

  Log Message:
  -----------
  Adds MLIR C-API for marshaling Python capsules.

* Providing stable, C-accessible definitions for bridging MLIR Python<->C APIs, we eliminate inter-extension dependencies (i.e. they can all share a diamond dependency on the MLIR C-API).
* Just provides accessors for context and module right now.
* Needed in NPComp in ~a week or so for high level Torch APIs.

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




More information about the All-commits mailing list