This is an archive of the discontinued LLVM Phabricator instance.

[mlir][NFC] Update the Builtin dialect to use "Both" accessors
ClosedPublic

Authored by rriddle on Mar 8 2022, 12:49 AM.

Diff Detail

Event Timeline

rriddle created this revision.Mar 8 2022, 12:49 AM
Herald added a reviewer: ftynse. · View Herald Transcript
Herald added a reviewer: sjarus. · View Herald Transcript
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
rriddle requested review of this revision.Mar 8 2022, 12:49 AM
tpopp added a subscriber: tpopp.Mar 8 2022, 6:49 AM
tpopp added inline comments.
mlir/include/mlir/IR/BuiltinDialect.td
37

Can you please first use kEmitAccessorPrefix_Both? In this case there is a clear option to allow a transition period and it is unlikely to create much more work for you as there would be few new uses in a 2 week time frame.

rriddle updated this revision to Diff 413840.Mar 8 2022, 9:40 AM
rriddle retitled this revision from [mlir][NFC] Update the Builtin dialect to use prefixed accessors to [mlir][NFC] Update the Builtin dialect to use "Both" accessors.
rriddle marked an inline comment as done.Mar 8 2022, 9:40 AM
rriddle added inline comments.
mlir/include/mlir/IR/BuiltinDialect.td
37

Sure, though not sure how long I'll leave it for.

mehdi_amini accepted this revision.Mar 8 2022, 12:12 PM
This revision is now accepted and ready to land.Mar 8 2022, 12:12 PM
This revision was automatically updated to reflect the committed changes.
rriddle marked an inline comment as done.
tpopp added inline comments.Mar 8 2022, 11:28 PM
mlir/include/mlir/IR/BuiltinDialect.td
37

Thank you. (Also, I listed 2 weeks as a random number. At least for us, we will be working on the transition right away as we are aware of it)

rriddle added inline comments.Mar 8 2022, 11:39 PM
mlir/include/mlir/IR/BuiltinDialect.td
37

Yep, thanks for suggesting the "both" mode. (Almost forgot about it honestly).