[mlir][StandardOps] Updated IndexCastOp to support tensor<index> cast
authorRob Suderman <rob.suderman@gmail.com>
Thu, 11 Jun 2020 00:18:33 +0000 (17:18 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Thu, 11 Jun 2020 00:19:08 +0000 (17:19 -0700)
commit3d56f166bd3c00e1b05931d57d385ef2b41c092d
treea0186f456d44530ba4140745b07683363d64ac87
parent51114686d51225e26b13c6870ecb8b6795413ba4
[mlir][StandardOps] Updated IndexCastOp to support tensor<index> cast

Summary:
We now support index casting for tensor<index> to tensor<int>. This
better supports compatibility with the Shape dialect.

Differential Revision: https://reviews.llvm.org/D81611
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/test/Dialect/Standard/invalid.mlir [new file with mode: 0644]
mlir/test/Dialect/Standard/ops.mlir [new file with mode: 0644]