Add type function for ConstShape op.
authorJacques Pienaar <jpienaar@google.com>
Mon, 17 May 2021 18:47:19 +0000 (11:47 -0700)
committerJacques Pienaar <jpienaar@google.com>
Mon, 17 May 2021 18:47:19 +0000 (11:47 -0700)
commit24bf554b1059d1ee27040ea90fc046d75950e58d
treeb55040885639ac03d49afc51ec5e8021849a418d
parent0c557db617112b429e5abfbcec72d181221bfead
Add type function for ConstShape op.

- Enables inferring return type for ConstShape, takes into account valid return types;
- The compatible return type function could be reused, leaving that for next use refactoring;

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