The operand of from_extent_tensor is now of the same index type as the result
type of the inverse operation to_extent_tensor.
Depends On D80281
Differential D80283
[MLIR] Fix operand type in `from_extent_tensor` in the shape dialect frgossen on May 20 2020, 2:19 AM. Authored by
Details The operand of from_extent_tensor is now of the same index type as the result Depends On D80281
Diff Detail
Event TimelineComment Actions I believe we have some use cases where extent tensors are i32 due to early lowering out of index type. @mravishankar might know how this is done in IREE. In the HLO dialect, we have the ScalarsToDimensionTensor op and that allows integer types and index. In any case, the two ops should agree on their supported types. Comment Actions Thanks, this is a great cleanup! I happen to have added this before tensor<index> was allowed so I used i32, but now that doesn't make sense. Comment Actions Seems @silvas thinks this is ok, so I assume it will also work for IREE. Feel free go ahead an land. |