[all-commits] [llvm/llvm-project] 0e6beb: [mlir][Python] Add python binding to create DenseE...

Stella Laurenzo via All-commits all-commits at lists.llvm.org
Mon Oct 19 22:37:35 PDT 2020


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

  Changed paths:
    M mlir/lib/Bindings/Python/IRModules.cpp
    A mlir/test/Bindings/Python/ir_array_attributes.py
    M mlir/test/Bindings/Python/ir_attributes.py
    M mlir/test/Bindings/Python/ir_types.py

  Log Message:
  -----------
  [mlir][Python] Add python binding to create DenseElementsAttribute.

* Interops with Python buffers/numpy arrays to create.
* Also cleans up 'get' factory methods on some types to be consistent.
* Adds mlirAttributeGetType() to C-API to facilitate error handling and other uses.
* Punts on a lot of features of the ElementsAttribute hierarchy for now.
* Does not yet support bool or string attributes.

Reviewed By: ftynse

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




More information about the All-commits mailing list