llvm-project/mlir/test/Conversion/MemRefToLLVM
Quentin Colombet 786cbb09ed Re-apply "[mlir][MemRefToLLVM] Remove the code for lowering subview"
This reverts commit d0650d1089.

Original commit message:
Subviews are supposed to be expanded before we hit the lowering
code.
The expansion is done with the pass called
expand-strided-metadata.

Add a test that demonstrate how these passes can be linked up to achieve
the desired lowering.

This patch is NFC in spirit but not in practice because `subview` gets
lowered into `reinterpret_cast(extract_strided_metadata, <some math>)`
which lowers in two memref descriptors (one for `reinterpert_cast` and
one for `extract_strided_metadata`), which creates some noise of the
form: `extractvalue(unrealized_cast(extractvalue[0]))[0]` that is
currently not simplified within MLIR but that is really just noop in
that case.

Differential Revision: https://reviews.llvm.org/D136377
2022-12-02 15:26:58 +00:00
..
convert-alloca-scope.mlir [mlir][NFC] Remove trailing whitespaces from `*.td` and `*.mlir` files. 2022-11-28 15:26:30 -08:00
convert-dynamic-memref-ops.mlir [mlir][memref] fix overflow in realloc 2022-09-23 03:07:23 +00:00
convert-static-memref-ops.mlir [mlir][memref] fix overflow in realloc 2022-09-23 03:07:23 +00:00
expand-then-convert-to-llvm.mlir Re-apply "[mlir][MemRefToLLVM] Remove the code for lowering subview" 2022-12-02 15:26:58 +00:00
generic-functions.mlir [mlir][Pass] Include anchor op in -pass-pipeline 2022-11-03 11:36:12 -04:00
memref-to-llvm.mlir Re-apply "[mlir][MemRefToLLVM] Remove the code for lowering subview" 2022-12-02 15:26:58 +00:00