This is an archive of the discontinued LLVM Phabricator instance.

[mlir][python] Usability improvements for Python bindings
ClosedPublic

Authored by ftynse on Oct 1 2021, 9:31 AM.

Details

Summary

Provide a couple of quality-of-life usability improvements for Python bindings,
in particular:

  • give access to the list of types for the list of op results or block arguments, similarly to ValueRange->TypeRange,
  • allow for constructing empty dictionary arrays,
  • support construction of array attributes by concatenating an existing attribute with a Python list of attributes.

All these are required for the upcoming customization of builtin and standard
ops.

Diff Detail

Event Timeline

ftynse created this revision.Oct 1 2021, 9:31 AM
ftynse requested review of this revision.Oct 1 2021, 9:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 1 2021, 9:31 AM
stellaraccident accepted this revision.Oct 1 2021, 10:21 AM

Awesome, thanks!

This revision is now accepted and ready to land.Oct 1 2021, 10:21 AM
ftynse updated this revision to Diff 376832.Oct 4 2021, 2:38 AM

Rebase.

This revision was automatically updated to reflect the committed changes.