llvm-project/mlir/include/mlir-c
Alex Zinenko ff6e5508d6 [mlir] Structured transforms: introduce op splitting
Introduce a new transformation on structured ops that splits the iteration
space into two parts along the specified dimension. The index at which the
splitting happens may be static or dynamic. This transformation can be seen as
a rudimentary form of index-set splitting that only supports the splitting
along hyperplanes parallel to the iteration space hyperplanes, and is therefore
decomposable into per-dimension application.

It is a key low-level transformation that enables independent scheduling for
different parts of the iteration space of the same op, which hasn't been
possible previously. It may be used to implement, e.g., multi-sized tiling. In
future, peeling can be implemented as a combination of split-off amount
computation and splitting.

The transformation is conceptually close to tiling in its separation of the
iteration and data spaces, but cannot be currently implemented on top of
TilingInterface as the latter does not properly support `linalg.index`
offsetting.

Note that the transformation intentionally bypasses folding of
`tensor.extract_slice` operations when creating them as this folding was found
to prevent repeated splitting of the same operation because due to internal
assumptions about extract/insert_slice combination in dialect utilities.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D129090
2022-07-07 13:19:44 +02:00
..
Bindings/Python [mlir] Fix python bindings build on Windows in Debug 2022-05-09 19:46:47 -07:00
Dialect [mlir][gpu] Move GPU headers into IR/ and Transforms/ 2022-06-09 22:49:03 +00:00
AffineExpr.h [mlir][python] improve usability of Python affine construct bindings 2021-11-03 10:48:01 +01:00
AffineMap.h [mlir][linalg][python] Add attribute support to the OpDSL. 2021-06-24 09:40:32 +00:00
BuiltinAttributes.h [MLIR] Add function to create BFloat16 array attribute 2022-04-19 19:27:06 +00:00
BuiltinTypes.h [mlir] Structured transforms: introduce op splitting 2022-07-07 13:19:44 +02:00
Conversion.h Apply clang-tidy fixes for llvm-header-guard in MLIR (NFC) 2022-01-13 23:14:06 +00:00
Debug.h [mlir] Improve debug flag management in Python bindings 2021-04-19 14:45:43 +02:00
Diagnostics.h [mlir] Use more C99 comments in C API header files 2021-01-25 19:23:06 +01:00
ExecutionEngine.h Apply clang-tidy fixes for llvm-header-guard in MLIR (NFC) 2022-01-13 23:14:06 +00:00
IR.h [mlir] Prefix pass manager options with `mlir-` 2022-04-12 09:32:44 +00:00
IntegerSet.h [mlir] Add C API for IntegerSet 2021-01-25 20:16:22 +01:00
Interfaces.h [MLIR] replace C++ function type defintion in the C API's Interfaces.h 2022-02-21 07:53:59 -08:00
Pass.h [mlir] Prefix pass manager options with `mlir-` 2022-04-12 09:32:44 +00:00
Registration.h [mlir] Rename the Standard dialect to the Func dialect 2022-03-01 12:10:04 -08:00
Support.h [mlir][capi] Add external pass creation to MLIR C-API 2022-04-04 10:27:11 -06:00
Transforms.h [mlir][CAPI] Proposal: Always building a libMLIRPublicAPI.so (re-apply). 2020-11-08 16:57:51 -08:00