xref: /llvm-project/mlir/examples/transform/Ch3/include/MyExtension.h (revision 5a9bdd85ee4d8527e2cedf44f3ce26ff414f9b6a)
1 //===-- MyExtension.h - Transform dialect tutorial --------------*- 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 // This file defines Transform dialect extension operations used in the
10 // Chapter 3 of the Transform dialect tutorial.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "mlir/Bytecode/BytecodeOpInterface.h"
15 #include "mlir/Dialect/Transform/IR/TransformDialect.h"
16 #include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h"
17 
18 namespace mlir {
19 class CallOpInterface;
20 namespace func {
21 class CallOp;
22 } // namespace func
23 namespace transform {
24 class OperationType;
25 } // namespace transform
26 } // namespace mlir
27 
28 #define GET_TYPEDEF_CLASSES
29 #include "MyExtensionTypes.h.inc"
30 
31 #define GET_OP_CLASSES
32 #include "MyExtension.h.inc"
33 
34 // Registers our Transform dialect extension.
35 void registerMyExtension(::mlir::DialectRegistry &registry);
36