llvm-project/mlir/include/mlir-c
zhanghb97 54d432aa6b [mlir] Add Shaped Type, Tensor Type and MemRef Type to python bindings.
Based on the PyType and PyConcreteType classes, this patch implements the bindings of Shaped Type, Tensor Type and MemRef Type subclasses.
The Tensor Type and MemRef Type are bound as ranked and unranked separately.
This patch adds the ***GetChecked C API to make sure the python side can get a valid type or a nullptr.
Shaped type is not a kind of standard types, it is the base class for vectors, memrefs and tensors, this patch binds the PyShapedType class as the base class of Vector Type, Tensor Type and MemRef Type subclasses.

Reviewed By: stellaraccident

Differential Revision: https://reviews.llvm.org/D87091
2020-09-06 11:45:54 -07:00
..
AffineMap.h [mlir] expose standard types to C API 2020-08-18 13:11:37 +02:00
Core.h [mlir][NFC] Remove usernames and google bug numbers from TODO comments. 2020-07-07 01:40:52 -07:00
IR.h Add Location, Region and Block to MLIR Python bindings. 2020-08-28 15:26:05 -07:00
Registration.h Separate the Registration from Loading dialects in the Context 2020-08-19 01:19:03 +00:00
StandardAttributes.h [mlir] expose standard attributes to C API 2020-08-19 18:50:19 +02:00
StandardTypes.h [mlir] Add Shaped Type, Tensor Type and MemRef Type to python bindings. 2020-09-06 11:45:54 -07:00