[mlir][shape] Mark some operations as commutative
authorStephan Herhut <herhut@google.com>
Wed, 15 Jul 2020 07:31:48 +0000 (09:31 +0200)
committerStephan Herhut <herhut@google.com>
Wed, 15 Jul 2020 16:32:42 +0000 (18:32 +0200)
commit412b60531edd8caeccea9c3756d55c7f32337857
tree9665973715748b36aa3d378fa296a09937cd112f
parent3577317b6d6b6e3fc4ae42b79900968620571886
[mlir][shape] Mark some operations as commutative

Summary:
This makes sure that their constant arguments are sorted to the back
and hence eases the specification of rewrite patterns.

Differential Revision: https://reviews.llvm.org/D83856
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td