This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Split MLProgram global load and store to Graph variants
ClosedPublic

Authored by jpienaar on Jun 14 2022, 5:35 PM.

Details

Summary
  • Split ops into X_graph variants as discussed;
  • Remove tokens from non-Graph region variants and rely on side-effect modelling there while removing side-effect modelling from Graph variants and relying on explicit ordering there;
  • Make tokens required to be produced by Graph variants - but kept explicit token type specification given previous discussion on this potentially being configurable in future;

This results in duplicating some code. I considered adding helper
functions but decided against adding an abstraction there early given
size of duplication and creating accidental coupling.

Diff Detail

Event Timeline

jpienaar created this revision.Jun 14 2022, 5:35 PM
jpienaar requested review of this revision.Jun 14 2022, 5:35 PM
stellaraccident accepted this revision.Jun 14 2022, 6:24 PM

Thanks for doing this!

This revision is now accepted and ready to land.Jun 14 2022, 6:24 PM
mehdi_amini requested changes to this revision.Jun 15 2022, 3:03 AM

Graph variants should have exactly the same side effects.

This revision now requires changes to proceed.Jun 15 2022, 3:03 AM
jpienaar updated this revision to Diff 437779.Jun 16 2022, 7:55 PM

Updated to same side-effects

This revision was not accepted when it landed; it landed in state Needs Review.Jun 16 2022, 8:02 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.