MLIR 24.0.0git
LinalgTransformOps.h
Go to the documentation of this file.
1//===- LinalgTransformOps.h - Linalg transform ops --------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef MLIR_DIALECT_LINALG_TRANSFORMOPS_LINALGTRANSFORMOPS_H
10#define MLIR_DIALECT_LINALG_TRANSFORMOPS_LINALGTRANSFORMOPS_H
11
20
21namespace mlir {
22class TilingInterface;
23class RewriterBase;
24
25namespace linalg {
26class CopyOp;
27class GenericOp;
28class LinalgOp;
29} // namespace linalg
30
31namespace scf {
32struct SCFTilingResult;
33} // namespace scf
34
35namespace tensor {
36class InsertSliceOp;
37class PadOp;
38} // namespace tensor
39
40namespace transform {
41// Types needed for builders.
42struct TileSizesSpec {};
44} // namespace transform
45} // namespace mlir
46
47namespace mlir {
48class DialectRegistry;
49
50namespace transform {
51
52/// Implementation of tiling operations using `scf.forall`.
53DiagnosedSilenceableFailure tileToForallOpImpl(
54 RewriterBase &rewriter, transform::TransformState &state,
55 TransformOpInterface transformOp, Operation *target,
56 ArrayRef<OpFoldResult> mixedNumThreads,
57 ArrayRef<OpFoldResult> mixedTileSizes, std::optional<ArrayAttr> mapping,
58 scf::SCFTilingResult &tilingResult, ArrayRef<bool> scalableSizes = {});
59} // namespace transform
60} // namespace mlir
61
62//===----------------------------------------------------------------------===//
63// Linalg Transform Operations
64//===----------------------------------------------------------------------===//
65
66#include "mlir/Dialect/Linalg/TransformOps/LinalgTransformOpsEnums.h.inc"
67
68#define GET_OP_CLASSES
69#include "mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.h.inc"
70
71#endif // MLIR_DIALECT_LINALG_TRANSFORMOPS_LINALGTRANSFORMOPS_H
This class coordinates the application of a rewrite on a set of IR, providing a way for clients to tr...
DiagnosedSilenceableFailure tileToForallOpImpl(RewriterBase &rewriter, transform::TransformState &state, TransformOpInterface transformOp, Operation *target, ArrayRef< OpFoldResult > mixedNumThreads, ArrayRef< OpFoldResult > mixedTileSizes, std::optional< ArrayAttr > mapping, scf::SCFTilingResult &tilingResult, ArrayRef< bool > scalableSizes={})
Implementation of tiling operations using scf.forall.
Include the generated interface declarations.