This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] [Python ODS] Use @builtins.property for cases where 'property' is already defined
ClosedPublic

Authored by jdd on Jul 15 2021, 3:14 PM.

Details

Summary

In cases where an operation has an argument or result named 'property', the
ODS-generated python fails on import because the @property resolves to the
property operation argument instead of the builtin @property decorator. We
should always use the fully qualified decorator name.

Diff Detail

Event Timeline

jdd created this revision.Jul 15 2021, 3:14 PM
jdd requested review of this revision.Jul 15 2021, 3:14 PM
mikeurbach accepted this revision.Jul 15 2021, 3:24 PM

Makes sense to me.

This revision is now accepted and ready to land.Jul 15 2021, 3:24 PM