NFC - Handle IndexedValue corner case
authorNicolas Vasilache <ntv@google.com>
Thu, 28 Mar 2019 22:12:18 +0000 (15:12 -0700)
committerjpienaar <jpienaar@google.com>
Sat, 30 Mar 2019 00:51:48 +0000 (17:51 -0700)
commitabe881d565c30cb28c950a83a6311eebf9d4da1d
tree1cef492ddde4876a9ffc9f140900ccda78309469
parent01140bd137cfb0ca6b14293e9392640be9857a73
NFC - Handle IndexedValue corner case

Implicit conversion don't play nicely in expressions such as:
`C() = A(i) * B(i)`.

Make `C()` return an IndexedValue instead of casting to ValueHandle.
This prevents double capture errors and is useful for the tutorial.

PiperOrigin-RevId: 240863223
mlir/include/mlir/EDSC/Helpers.h