| 1 | //===- TuneExtension.cpp - Tune extension for the Transform dialect -------===// |
|---|---|
| 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 | #include "mlir/Dialect/Transform/TuneExtension/TuneExtension.h" |
| 10 | |
| 11 | #include "mlir/Dialect/Transform/IR/TransformDialect.h" |
| 12 | #include "mlir/Dialect/Transform/TuneExtension/TuneExtensionOps.h" |
| 13 | #include "mlir/IR/DialectRegistry.h" |
| 14 | |
| 15 | using namespace mlir; |
| 16 | |
| 17 | class TuneExtension |
| 18 | : public transform::TransformDialectExtension<TuneExtension> { |
| 19 | public: |
| 20 | MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(TuneExtension) |
| 21 | |
| 22 | void init() { |
| 23 | registerTransformOps< |
| 24 | #define GET_OP_LIST |
| 25 | #include "mlir/Dialect/Transform/TuneExtension/TuneExtensionOps.cpp.inc" |
| 26 | >(); |
| 27 | } |
| 28 | }; |
| 29 | |
| 30 | void mlir::transform::registerTuneExtension(DialectRegistry &dialectRegistry) { |
| 31 | dialectRegistry.addExtensions<TuneExtension>(); |
| 32 | } |
| 33 |
