aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorZHANG Hongbin <zhanghb97@126.com>2020-09-02 04:40:28 +0000
committerMehdi Amini <joker.eph@gmail.com>2020-09-02 05:46:00 +0000
commit1d99472875100b230bac2d9ea70b5cd4b45e788b (patch)
tree00e13f2d77da32c67a27434eaf2664b03a48bae3 /clang/lib/Frontend/CompilerInvocation.cpp
parentb21ddded8f04fee925bbf9e6458347104b5b99eb (diff)
downloadllvm-1d99472875100b230bac2d9ea70b5cd4b45e788b.zip
llvm-1d99472875100b230bac2d9ea70b5cd4b45e788b.tar.gz
llvm-1d99472875100b230bac2d9ea70b5cd4b45e788b.tar.bz2
[mlir] Add Complex Type, Vector Type and Tuple Type subclasses to python bindings
Based on the PyType and PyConcreteType classes, this patch implements the bindings of Complex Type, Vector Type and Tuple Type subclasses. For the convenience of type checking, this patch defines a `mlirTypeIsAIntegerOrFloat` function to check whether the given type is an integer or float type. These three subclasses in this patch have similar binding strategy: - The function pointer `isaFunction` points to `mlirTypeIsA***`. - The `mlir***TypeGet` C API is bound with the `get_***` method in the python side. - The Complex Type and Vector Type check whether the given type is an integer or float type. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D86785
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions