llvm-project/mlir
Haruki Imai 000a05fd1a [mlir] Normalize dynamic memrefs with a map of tiled-layout.
Steps for normalizing dynamic memrefs for tiled layout map
1. Check if original map is tiled layout. Only tiled layout is supported.
2. Create normalized memrefType. Dimensions that include dynamic dimensions
   in the map output will be dynamic dimensions.
3. Create new maps to calculate each dimension size of new memref.
   In tiled layout, the dimension size can be calculated by replacing
    "floordiv <tile size>" with "ceildiv <tile size>" and
    "mod <tile size>" with "<tile size>".
4. Create AffineApplyOp to apply the new maps. The output of AffineApplyOp is
   dynamicSizes for new AllocOp.
5. Add the new dynamic sizes in new AllocOp.

This patch also set MemRefsNormalizable trant in CastOp and DimOp since
they used with dynamic memrefs.

Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D97655
2021-05-24 08:39:36 +05:30
..
cmake/modules [cmake] Add support for multiple distributions 2021-05-12 11:13:18 -07:00
docs [mlir][docs] Add memref and sparse_tensor to Passes.md 2021-05-21 15:23:39 -07:00
examples Add a helper function to convert LogicalResult to int for return from main 2021-05-19 00:12:39 +00:00
include [mlir] Normalize dynamic memrefs with a map of tiled-layout. 2021-05-24 08:39:36 +05:30
lib [mlir] Normalize dynamic memrefs with a map of tiled-layout. 2021-05-24 08:39:36 +05:30
python [mlir] Add Python bindings for vector dialect 2021-05-20 17:53:08 +09:00
test [mlir] Normalize dynamic memrefs with a map of tiled-layout. 2021-05-24 08:39:36 +05:30
tools [mlir] Add support for fusion into TiledLoopOp. 2021-05-21 18:13:45 +02:00
unittests [mlir][spirv] NFC: Replace OwningSPIRVModuleRef with OwningOpRef 2021-05-06 17:17:44 -04:00
utils [mlir] Add a vscode language extension for MLIR 2021-04-21 14:44:37 -07:00
.clang-format
.clang-tidy Fix MLIR clang-tidy: when tweaking it does not inherit from the parent 2020-03-07 17:44:21 +00:00
CMakeLists.txt Move MLIR python sources to mlir/python. 2021-05-03 18:36:48 +00: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.