Add initial python bindings for attributes.
authorStella Laurenzo <stellaraccident@gmail.com>
Wed, 19 Aug 2020 22:33:02 +0000 (15:33 -0700)
committerStella Laurenzo <stellaraccident@gmail.com>
Mon, 24 Aug 2020 05:16:23 +0000 (22:16 -0700)
commit3137c299269dd758c4c1630dc0c4621a1137eb7c
tree36e99a29623dc5ba061a5642ef1815d487597ec2
parent1bc45b2fd8083036c7d5a1545874ab06ec9b029a
Add initial python bindings for attributes.

* Generic mlir.ir.Attribute class.
* First standard attribute (mlir.ir.StringAttr), following the same pattern as generic vs standard types.
* NamedAttribute class.

Differential Revision: https://reviews.llvm.org/D86250
mlir/include/mlir-c/IR.h
mlir/lib/Bindings/Python/IRModules.cpp
mlir/lib/Bindings/Python/IRModules.h
mlir/lib/Bindings/Python/PybindUtils.cpp
mlir/lib/Bindings/Python/PybindUtils.h
mlir/test/Bindings/Python/ir_attributes.py [new file with mode: 0644]
mlir/test/Bindings/Python/ir_types.py