diff options
author | Nicolas Vasilache <ntv@google.com> | 2020-01-05 19:37:56 -0500 |
---|---|---|
committer | Nicolas Vasilache <ntv@google.com> | 2020-01-08 13:07:41 -0500 |
commit | 766ce87e9bed89bc3b5c2c904f1eb2d10be0d3be (patch) | |
tree | 9f132bfe7e416f6c3194bfffa346c5e4aab79cfb /lldb/scripts/Python/python-extensions.swig | |
parent | 3811417f39a7d0a370fac2923060f5ef8dacd8d7 (diff) | |
download | llvm-766ce87e9bed89bc3b5c2c904f1eb2d10be0d3be.zip llvm-766ce87e9bed89bc3b5c2c904f1eb2d10be0d3be.tar.gz llvm-766ce87e9bed89bc3b5c2c904f1eb2d10be0d3be.tar.bz2 |
[mlir][Linalg] Lower linalg.reshape to LLVM for the static case
Summary:
This diff adds lowering of the linalg.reshape op to LLVM.
A new descriptor is created with fields initialized as follows:
1. allocatedPTr, alignedPtr and offset are copied from the source descriptor
2. sizes are copied from the static destination shape
3. strides are copied from the static strides collected with `getStridesAndOffset`
Only the static case in which the target view conforms to strided memref
semantics is supported. Other cases are left for future work and will be added on
a per-need basis.
Reviewers: ftynse, mravishankar
Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, arpith-jacob, mgester, lucyrfox, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D72316
Diffstat (limited to 'lldb/scripts/Python/python-extensions.swig')
0 files changed, 0 insertions, 0 deletions