[all-commits] [llvm/llvm-project] ad958f: [mlir][Python] Add missing capsule->module and Con...

Stella Laurenzo via All-commits all-commits at lists.llvm.org
Tue Oct 13 13:17:33 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ad958f648e46680966375a93a3f2f1f5ee870671
      https://github.com/llvm/llvm-project/commit/ad958f648e46680966375a93a3f2f1f5ee870671
  Author: Stella Laurenzo <stellaraccident at gmail.com>
  Date:   2020-10-13 (Tue, 13 Oct 2020)

  Changed paths:
    M mlir/include/mlir-c/Bindings/Python/Interop.h
    M mlir/lib/Bindings/Python/IRModules.cpp
    M mlir/lib/Bindings/Python/IRModules.h
    M mlir/test/Bindings/Python/ir_attributes.py
    M mlir/test/Bindings/Python/ir_location.py
    M mlir/test/Bindings/Python/ir_module.py
    M mlir/test/Bindings/Python/ir_operation.py
    M mlir/test/Bindings/Python/ir_types.py

  Log Message:
  -----------
  [mlir][Python] Add missing capsule->module and Context.create_module.

* Extends Context/Operation interning to cover Module as well.
* Implements Module.context, Attribute.context, Type.context, and Location.context back-references (facilitated testing and also on the TODO list).
* Adds method to create an empty Module.
* Discovered missing in npcomp.

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




More information about the All-commits mailing list