This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Shape] Allow shape.split_at to return extent tensors and lower it to std.subtensor
ClosedPublic

Authored by bkramer on Mar 8 2021, 6:26 AM.

Details

Summary

split_at can return an error if the split index is out of bounds. If the
user knows that the index can never be out of bounds it's safe to use
extent tensors. This has a straight-forward lowering to std.subtensor.

Diff Detail

Event Timeline

bkramer created this revision.Mar 8 2021, 6:26 AM
bkramer requested review of this revision.Mar 8 2021, 6:26 AM
herhut accepted this revision.Mar 8 2021, 6:53 AM

Thanks!

jpienaar accepted this revision.Mar 8 2021, 7:18 AM
This revision is now accepted and ready to land.Mar 8 2021, 7:18 AM
This revision was landed with ongoing or failed builds.Mar 8 2021, 7:48 AM
This revision was automatically updated to reflect the committed changes.