[mlir][python] Swap shape and element_type order for MemRefType.
authorStella Laurenzo <stellaraccident@gmail.com>
Wed, 20 Jan 2021 00:02:02 +0000 (16:02 -0800)
committerStella Laurenzo <stellaraccident@gmail.com>
Wed, 20 Jan 2021 00:03:19 +0000 (16:03 -0800)
commitb62c7e047420026dcfe84ad66969f501698acbee
treee45f328bdffb3efcafb1177686fe5620042cbd72
parent7f36df0fb19c08879822cf5b7d4bba300fc8c058
[mlir][python] Swap shape and element_type order for MemRefType.

* 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.

Reviewed By: ftynse, nicolasvasilache

Differential Revision: https://reviews.llvm.org/D94812
mlir/examples/python/linalg_matmul.py
mlir/lib/Bindings/Python/IRModules.cpp
mlir/test/Bindings/Python/ir_types.py