This is an archive of the discontinued LLVM Phabricator instance.

[mlir][python] Swap shape and element_type order for MemRefType.
ClosedPublic

Authored by stellaraccident on Jan 15 2021, 11:11 AM.

Details

Summary
  • Matches how all of the other shaped types are declared.
  • No super principled reason fro this ordering beyond that it makes the one that was different be like the rest.
  • Also matches ordering of things like ndarray, et al.

Diff Detail

Event Timeline

stellaraccident requested review of this revision.Jan 15 2021, 11:11 AM
nicolasvasilache accepted this revision.Jan 18 2021, 1:06 AM
This revision is now accepted and ready to land.Jan 18 2021, 1:06 AM

Matches how all of the other shaped types are declared.

Is it also the case in C++? Maybe we should fix that too.

ftynse accepted this revision.Jan 18 2021, 2:57 AM

Hmm, this change actually makes Python API align on C++ API. I don't remember if there was a good reason to swap the order in C.

Rebase and split from parent.

Hmm, this change actually makes Python API align on C++ API. I don't remember if there was a good reason to swap the order in C.

I suspect there was no reason. Just done by different people and missed in isolated reviews.

This revision was landed with ongoing or failed builds.Jan 19 2021, 4:05 PM
This revision was automatically updated to reflect the committed changes.