Use index for shape.to_extent_tensor
authorSean Silva <silvasean@google.com>
Tue, 14 Apr 2020 20:30:44 +0000 (13:30 -0700)
committerSean Silva <silvasean@google.com>
Tue, 14 Apr 2020 22:09:18 +0000 (15:09 -0700)
commit483f2783ae013f0a07e11d16cf8f6d00fa552704
treeb1f6d0b15960b7a0fa330c6a14fe852f1020975e
parentc285841a4fb7ab0ead76043649394c443b03e5fc
Use index for shape.to_extent_tensor

Summary:
Also,
- add IndexTensor to OpBase.td
- fix typo in the op name. It was mistakenly `to_tensor` instead of
  `to_extent_tensor`.

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