[all-commits] [llvm/llvm-project] f66cd9: [mlir] Add Python bindings for DenseResourceElemen...

Stella Laurenzo via All-commits all-commits at lists.llvm.org
Thu Sep 14 18:45:43 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f66cd9e9556a53142a26a5c21a72e21f1579217c
      https://github.com/llvm/llvm-project/commit/f66cd9e9556a53142a26a5c21a72e21f1579217c
  Author: Stella Laurenzo <stellaraccident at gmail.com>
  Date:   2023-09-14 (Thu, 14 Sep 2023)

  Changed paths:
    M mlir/include/mlir-c/BuiltinAttributes.h
    M mlir/lib/Bindings/Python/IRAttributes.cpp
    M mlir/lib/CAPI/IR/BuiltinAttributes.cpp
    M mlir/test/CAPI/ir.c
    M mlir/test/python/ir/array_attributes.py

  Log Message:
  -----------
  [mlir] Add Python bindings for DenseResourceElementsAttr. (#66319)

Only construction and type casting are implemented. The method to create
is explicitly named "unsafe" and the documentation calls out what the
caller is responsible for. There really isn't a better way to do this
and retain the power-user feature this represents.




More information about the All-commits mailing list