This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Python] Python API cleanups and additions found during code audit.
ClosedPublic

Authored by stellaraccident on Nov 29 2020, 1:33 PM.

Details

Summary
  • Add capsule get/create for Attribute and Type, which already had capsule interop defined.
  • Add capsule interop and get/create for Location.
  • Add Location eq.
  • Use get() and implicit cast to go from PyAttribute, PyType, PyLocation to MlirAttribute, MlirType, MlirLocation (bundled with this change because I didn't want to continue the pattern one more time).

Diff Detail

Event Timeline

stellaraccident requested review of this revision.Nov 29 2020, 1:33 PM
mehdi_amini accepted this revision.Nov 29 2020, 5:57 PM
This revision is now accepted and ready to land.Nov 29 2020, 5:57 PM
This revision was landed with ongoing or failed builds.Nov 29 2020, 6:12 PM
This revision was automatically updated to reflect the committed changes.