1//===- TestTransformDialectExtension.h --------------------------*- 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 an extension of the MLIR Transform dialect for testing
10// purposes.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef MLIR_TESTTRANSFORMDIALECTEXTENSION_H
15#define MLIR_TESTTRANSFORMDIALECTEXTENSION_H
16
17#include "mlir/Dialect/PDL/IR/PDLTypes.h"
18#include "mlir/Dialect/Transform/IR/TransformTypes.h"
19#include "mlir/Dialect/Transform/Interfaces/MatchInterfaces.h"
20#include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h"
21
22namespace mlir {
23class DialectRegistry;
24} // namespace mlir
25
26#define GET_TYPEDEF_CLASSES
27#include "TestTransformDialectExtensionTypes.h.inc"
28
29#define GET_ATTRDEF_CLASSES
30#include "TestTransformDialectExtensionAttrs.h.inc"
31
32#define GET_OP_CLASSES
33#include "TestTransformDialectExtension.h.inc"
34
35namespace test {
36/// Registers the test extension to the Transform dialect.
37void registerTestTransformDialectExtension(::mlir::DialectRegistry &registry);
38} // namespace test
39
40#endif // MLIR_TESTTRANSFORMDIALECTEXTENSION_H
41