llvm-project/mlir
Nicolas Vasilache 2d515e49d8 [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
2020-01-09 03:13:01 -05:00
..
docs [mlir][spirv] Update SPIR-V documentation with information about 2020-01-05 23:05:37 -08:00
examples NFC: Replace ValuePtr with Value and remove it now that Value is value-typed. 2019-12-23 16:36:53 -08:00
include [mlir][VectorOps] Implement strided_slice conversion 2020-01-09 03:03:51 -05:00
lib [mlir][VectorOps] Implement insert_strided_slice conversion 2020-01-09 03:13:01 -05:00
test [mlir][VectorOps] Implement insert_strided_slice conversion 2020-01-09 03:13:01 -05:00
tools [mlir] Compilation fix: use LLVM_ATTRIBUTE_UNUSED following 6656e961c0 2020-01-03 16:31:33 -05:00
unittests [mlir] Fix indexed_accessor_range to properly forward the derived class. 2020-01-03 13:30:18 -08:00
utils [mlir][spirv] Update SPIR-V enums and ops with availability spec 2020-01-02 14:09:02 -05:00
.clang-format [mlir] add .clang-format 2019-03-29 12:41:43 -07:00
.clang-tidy Add a clang-tidy configuration file for MLIR, it is using camelBack for naming at the moment 2019-12-26 21:42:01 +00:00
CMakeLists.txt [MLIR] Fix ML IR build on Windows with Visual Studio 2020-01-08 10:40:04 -08:00
LICENSE.TXT Add the Apache2 with LLVM exceptions license to MLIR 2019-12-24 00:58:06 -08:00
README.md mlir README.md: Fix the syntax 2019-12-24 13:31:07 +01:00

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.