[all-commits] [llvm/llvm-project] 77133b: [mlir] Get array from the dense elements attribute...
zhanghb97 via All-commits
all-commits at lists.llvm.org
Tue Nov 17 23:51:38 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 77133b29b93406638915c7d9a6b8b8a81a067df3
https://github.com/llvm/llvm-project/commit/77133b29b93406638915c7d9a6b8b8a81a067df3
Author: zhanghb97 <hongbin2019 at iscas.ac.cn>
Date: 2020-11-18 (Wed, 18 Nov 2020)
Changed paths:
M mlir/docs/Bindings/Python.md
M mlir/include/mlir-c/StandardAttributes.h
M mlir/lib/Bindings/Python/IRModules.cpp
M mlir/lib/CAPI/IR/StandardAttributes.cpp
M mlir/test/Bindings/Python/ir_array_attributes.py
M mlir/test/CAPI/ir.c
Log Message:
-----------
[mlir] Get array from the dense elements attribute with buffer protocol.
- Add `mlirElementsAttrGetType` C API.
- Add `def_buffer` binding to PyDenseElementsAttribute.
- Implement the protocol to access the buffer.
Differential Revision: https://reviews.llvm.org/D91021
More information about the All-commits
mailing list