This is an archive of the discontinued LLVM Phabricator instance.

[mlir][python] Replace PythonAttr mappings with downcasting
ClosedPublic

Authored by rkayaith on Jul 4 2023, 8:19 PM.

Details

Summary

Since op Attributes are automatically downcasted on access, these mappings
aren't necessary anymore. Instead we just always generate the getters/setters
for attributes even if there isn't a PythonAttr mapping.

depends on D154462

Diff Detail

Event Timeline

rkayaith created this revision.Jul 4 2023, 8:19 PM
Herald added a project: Restricted Project. · View Herald Transcript
rkayaith published this revision for review.Jul 4 2023, 8:31 PM
ftynse accepted this revision.Jul 10 2023, 1:41 AM

Nice!

This revision is now accepted and ready to land.Jul 10 2023, 1:41 AM