[MLIR][Shape] Add support for `OpAsmInterface` in `shape.const_size`
authorFrederik Gossen <frgossen@google.com>
Mon, 8 Jun 2020 10:24:50 +0000 (10:24 +0000)
committerFrederik Gossen <frgossen@google.com>
Mon, 8 Jun 2020 10:27:28 +0000 (10:27 +0000)
commit215914151e01adb785098c77aeae3afd99a558f5
tree8ffccbe66f90a6f843154ea8394dc67bdec74bf8
parent80ab9345ed976327210d48da33bab33a79b79629
[MLIR][Shape] Add support for `OpAsmInterface` in `shape.const_size`

The SSA values created with `shape.const_size` are now named depending on the
value.
A constant size of 3, e.g., is now automatically named `%c3`.

Differential Revision: https://reviews.llvm.org/D81249
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
mlir/lib/Dialect/Shape/IR/Shape.cpp
mlir/test/Dialect/Shape/ops.mlir