| 1 | //===- TransformAttrs.cpp - Transform Dialect Attribute Definitions -------===// |
|---|---|
| 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/IR/TransformAttrs.h" |
| 10 | #include "mlir/Dialect/Transform/IR/TransformDialect.h" |
| 11 | #include "mlir/IR/OpImplementation.h" |
| 12 | |
| 13 | using namespace mlir; |
| 14 | |
| 15 | // These are automatically generated by ODS but are not used as the Transform |
| 16 | // dialect uses a different dispatch mechanism to support dialect extensions. |
| 17 | [[maybe_unused]] static OptionalParseResult |
| 18 | generatedAttributeParser(AsmParser &parser, StringRef *mnemonic, Type type, |
| 19 | Attribute &value); |
| 20 | [[maybe_unused]] static LogicalResult |
| 21 | generatedAttributePrinter(Attribute def, AsmPrinter &printer); |
| 22 | |
| 23 | #define GET_ATTRDEF_CLASSES |
| 24 | #include "mlir/Dialect/Transform/IR/TransformAttrs.cpp.inc" |
| 25 | |
| 26 | #include "mlir/Dialect/Transform/IR/TransformDialectEnums.cpp.inc" |
| 27 | |
| 28 | void transform::TransformDialect::initializeAttributes() { |
| 29 | addAttributesChecked< |
| 30 | #define GET_ATTRDEF_LIST |
| 31 | #include "mlir/Dialect/Transform/IR/TransformAttrs.cpp.inc" |
| 32 | >(); |
| 33 | } |
| 34 |