xref: /llvm-project/mlir/include/mlir/Dialect/Transform/IR/TransformOps.h (revision 91856b34e3eddf157ab4c6ea623483b49d149e62)
1 //===- TransformDialect.h - Transform dialect operations --------*- 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_TRANSFORM_IR_TRANSFORMOPS_H
10 #define MLIR_DIALECT_TRANSFORM_IR_TRANSFORMOPS_H
11 
12 #include "mlir/Bytecode/BytecodeOpInterface.h"
13 #include "mlir/Dialect/Transform/IR/TransformAttrs.h"
14 #include "mlir/Dialect/Transform/IR/TransformDialect.h"
15 #include "mlir/Dialect/Transform/IR/TransformTypes.h"
16 #include "mlir/Dialect/Transform/Interfaces/MatchInterfaces.h"
17 #include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h"
18 #include "mlir/IR/OpDefinition.h"
19 #include "mlir/IR/OpImplementation.h"
20 #include "mlir/IR/PatternMatch.h"
21 #include "mlir/IR/SymbolTable.h"
22 #include "mlir/Interfaces/CallInterfaces.h"
23 #include "mlir/Interfaces/CastInterfaces.h"
24 #include "mlir/Interfaces/ControlFlowInterfaces.h"
25 #include "mlir/Interfaces/FunctionInterfaces.h"
26 #include "mlir/Interfaces/LoopLikeInterface.h"
27 
28 namespace mlir {
29 namespace transform {
30 
31 enum class FailurePropagationMode : uint32_t;
32 class FailurePropagationModeAttr;
33 
34 /// A builder function that populates the body of a SequenceOp.
35 using SequenceBodyBuilderFn = ::llvm::function_ref<void(
36     ::mlir::OpBuilder &, ::mlir::Location, ::mlir::BlockArgument)>;
37 using SequenceBodyBuilderArgsFn =
38     ::llvm::function_ref<void(::mlir::OpBuilder &, ::mlir::Location,
39                               ::mlir::BlockArgument, ::mlir::ValueRange)>;
40 
41 } // namespace transform
42 } // namespace mlir
43 
44 #define GET_OP_CLASSES
45 #include "mlir/Dialect/Transform/IR/TransformOps.h.inc"
46 
47 #endif // MLIR_DIALECT_TRANSFORM_IR_TRANSFORMOPS_H
48