[all-commits] [llvm/llvm-project] 1f6c4d: [mlir] Add Index Type, Floating Point Type and Non...
zhanghb97 via All-commits
all-commits at lists.llvm.org
Mon Aug 24 12:09:54 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 1f6c4d829c2dad147e30dcb0611eb9886dae9155
https://github.com/llvm/llvm-project/commit/1f6c4d829c2dad147e30dcb0611eb9886dae9155
Author: zhanghb97 <zhanghb97 at 126.com>
Date: 2020-08-24 (Mon, 24 Aug 2020)
Changed paths:
M mlir/lib/Bindings/Python/IRModules.cpp
M mlir/test/Bindings/Python/ir_types.py
Log Message:
-----------
[mlir] Add Index Type, Floating Point Type and None Type subclasses to python bindings.
Based on the PyType and PyConcreteType classes, this patch implements the bindings of Index Type, Floating Point Type and None Type subclasses.
These three subclasses share the same binding strategy:
- The function pointer `isaFunction` points to `mlirTypeIsA***`.
- The `mlir***TypeGet` C API is bound with the `***Type` constructor in the python side.
Reviewed By: stellaraccident
Differential Revision: https://reviews.llvm.org/D86466
More information about the All-commits
mailing list