This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add Index Type, Floating Point Type and None Type subclasses to python bindings.
ClosedPublic

Authored by zhanghb97 on Aug 24 2020, 8:50 AM.

Details

Summary

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.

Diff Detail

Event Timeline

zhanghb97 created this revision.Aug 24 2020, 8:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2020, 8:50 AM
zhanghb97 requested review of this revision.Aug 24 2020, 8:50 AM
This revision is now accepted and ready to land.Aug 24 2020, 11:48 AM
This revision was landed with ongoing or failed builds.Aug 24 2020, 12:09 PM
This revision was automatically updated to reflect the committed changes.