llvm-project/mlir/tools
Alex Zinenko d064c4801c [mlir] Introduce Transform dialect
This dialect provides operations that can be used to control transformation of
the IR using a different portion of the IR. It refers to the IR being
transformed as payload IR, and to the IR guiding the transformation as
transform IR.

The main use case for this dialect is orchestrating fine-grain transformations
on individual operations or sets thereof. For example, it may involve finding
loop-like operations with specific properties (e.g., large size) in the payload
IR, applying loop tiling to those and only those operations, and then applying
loop unrolling to the inner loops produced by the previous transformations. As
such, it is not intended as a replacement for the pass infrastructure, nor for
the pattern rewriting infrastructure. In the most common case, the transform IR
will be processed and applied to payload IR by a pass. Transformations
expressed by the transform dialect may be implemented using the pattern
infrastructure or any other relevant MLIR component.

This dialect is designed to be extensible, that is, clients of this dialect are
allowed to inject additional operations into this dialect using the newly
introduced in this patch `TransformDialectExtension` mechanism. This allows the
dialect to avoid a dependency on the implementation of the transformation as
well as to avoid introducing dialect-specific transform dialects.

See https://discourse.llvm.org/t/rfc-interfaces-and-dialects-for-precise-ir-transformation-control/60927.

Reviewed By: nicolasvasilache, Mogball, rriddle

Differential Revision: https://reviews.llvm.org/D123135
2022-04-14 13:48:45 +02:00
..
mlir-cpu-runner Reland [mlir] Remove uses of LLVM's legacy pass manager 2022-04-11 16:53:32 -07:00
mlir-linalg-ods-gen [mlir][OpDSL] Support pointwise ops with rank zero inputs. 2022-03-08 17:39:47 +00:00
mlir-lsp-server [mlir:Analysis] Move the LoopAnalysis library to Dialect/Affine/Analysis 2022-01-18 10:28:22 -08:00
mlir-opt [mlir] Introduce Transform dialect 2022-04-14 13:48:45 +02:00
mlir-parser-fuzzer [mlir] Add simple fuzzer for textual format 2022-03-23 14:33:50 -07:00
mlir-pdll [PDLL] Add support for tablegen includes and importing ODS information 2022-03-03 16:14:03 -08:00
mlir-pdll-lsp-server [mlir][PDLL] Add an initial language server for PDLL 2022-03-19 13:28:23 -07:00
mlir-reduce [MLIR] Move TestDialect to ::test namespace 2021-08-14 13:24:41 -07:00
mlir-shlib [MLIR] Reapply: Adjust libMLIR building to more closely follow libClang 2020-05-04 20:47:57 -07:00
mlir-spirv-cpu-runner Reland [mlir] Remove uses of LLVM's legacy pass manager 2022-04-11 16:53:32 -07:00
mlir-tblgen [mlir][ods] Remove StrEnumAttr 2022-04-13 17:49:02 +00:00
mlir-translate [mlir][NFC] Move Translation.h to a Tools/mlir-translate directory 2022-03-07 01:05:38 -08:00
mlir-vulkan-runner Reland [mlir] Remove uses of LLVM's legacy pass manager 2022-04-11 16:53:32 -07:00
CMakeLists.txt [mlir] Add simple fuzzer for textual format 2022-03-23 14:33:50 -07:00