[all-commits] [llvm/llvm-project] 766ce8: [mlir][Linalg] Lower linalg.reshape to LLVM for th...

Nicolas Vasilache via All-commits all-commits at lists.llvm.org
Wed Jan 8 10:19:49 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 766ce87e9bed89bc3b5c2c904f1eb2d10be0d3be
      https://github.com/llvm/llvm-project/commit/766ce87e9bed89bc3b5c2c904f1eb2d10be0d3be
  Author: Nicolas Vasilache <ntv at google.com>
  Date:   2020-01-08 (Wed, 08 Jan 2020)

  Changed paths:
    M mlir/lib/Conversion/LinalgToLLVM/LinalgToLLVM.cpp
    M mlir/test/Dialect/Linalg/llvm.mlir

  Log Message:
  -----------
  [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




More information about the All-commits mailing list