[PATCH] D72316: [mlir][Linalg] Lower linalg.reshape to LLVM for the static case
Nicolas Vasilache via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 6 22:13:49 PST 2020
nicolasvasilache created this revision.
nicolasvasilache added reviewers: ftynse, mravishankar.
Herald added subscribers: llvm-commits, lucyrfox, mgester, arpith-jacob, antiagainst, shauheen, burmako, jpienaar, rriddle, mehdi_amini.
Herald added a project: LLVM.
nicolasvasilache updated this revision to Diff 236521.
nicolasvasilache added a comment.
Remove debug spew.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D72316
Files:
mlir/lib/Conversion/LinalgToLLVM/LinalgToLLVM.cpp
mlir/test/Dialect/Linalg/llvm.mlir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72316.236521.patch
Type: text/x-patch
Size: 8017 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200107/37ce539a/attachment.bin>
More information about the llvm-commits
mailing list