[MLIR] Add missing traits and assembly format to `shape.from/to_extent_tensor`
authorFrederik Gossen <frgossen@google.com>
Fri, 12 Jun 2020 10:53:15 +0000 (10:53 +0000)
committerFrederik Gossen <frgossen@google.com>
Fri, 12 Jun 2020 10:54:57 +0000 (10:54 +0000)
commit6196c379695ed8a6d0a2214d9107517ab55d4db7
tree8023c82784f684c8d1926080e283a4411692f765
parent4495a6b141ebf55bd1d7de48f3c0920c50cc9a77
[MLIR] Add missing traits and assembly format to `shape.from/to_extent_tensor`

Add `NoSideEffect` trait to `shape.to_extent_tensor` and
`shape.from_extent_tensor` and defined custom assembly format for the
operations.

Differential Revision: https://reviews.llvm.org/D81158
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
mlir/test/Dialect/Shape/canonicalize.mlir
mlir/test/Dialect/Shape/ops.mlir