Revert of Revert of [mlir][shape] Tidy up shape.shape_of
authorSean Silva <silvasean@google.com>
Tue, 12 May 2020 20:40:00 +0000 (13:40 -0700)
committerSean Silva <silvasean@google.com>
Tue, 12 May 2020 22:51:24 +0000 (15:51 -0700)
commit452e2fc409df4acd790fcb53872db5a1b8c0130a
tree4f72b802c62e7f9626da17013739478ee36684ab
parent759465ee34c0c0118fbd21cad87de17bb3be13e0
Revert of Revert of [mlir][shape] Tidy up shape.shape_of

Summary:

- Mark it NoSideEffect
- Add custom parser/printer

This reverts the temporary revert in
https://reviews.llvm.org/rG84a9c725742d26df04808a3c7349dbd98684c6cb
That was a false alarm. A downstream test actually needed to be updated.
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
mlir/test/Dialect/Shape/ops.mlir