diff options
| author | Nicolas Vasilache <ntv@google.com> | 2020-01-09 03:12:41 -0500 |
|---|---|---|
| committer | Nicolas Vasilache <ntv@google.com> | 2020-01-09 03:13:01 -0500 |
| commit | 2d515e49d89c0738ccef8f1733d5f9afe00ee979 (patch) | |
| tree | 46c20bc47996d20398c819dcd9cdde7e6eed63cd /llvm/lib/Target | |
| parent | 65678d938431c90408afa8d255cbed3d8ed8273f (diff) | |
| download | bcm5719-llvm-2d515e49d89c0738ccef8f1733d5f9afe00ee979.tar.gz bcm5719-llvm-2d515e49d89c0738ccef8f1733d5f9afe00ee979.zip | |
[mlir][VectorOps] Implement insert_strided_slice conversion
Summary:
This diff implements the progressive lowering of insert_strided_slice.
Two cases appear:
1. when the source and dest vectors have different ranks, extract the dest
subvector at the proper offset and reduce to case 2.
2. when they have the same rank N:
a. if the source and dest type are the same, the insertion is trivial:
just forward the source
b. otherwise, iterate over all N-1 D subvectors and create an
extract/insert_strided_slice/insert replacement, reducing the problem
to vecotrs of the same N-1 rank.
This combines properly with the other conversion patterns to lower all the way to LLVM.
Reviewers: ftynse, rriddle, AlexEichenberger, andydavis1, tetuante, nicolasvasilache
Reviewed By: andydavis1
Subscribers: merge_guards_bot, mehdi_amini, jpienaar, burmako, shauheen, antiagainst, arpith-jacob, mgester, lucyrfox, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D72317
Diffstat (limited to 'llvm/lib/Target')
0 files changed, 0 insertions, 0 deletions

