MLIR 23.0.0git
TransformAttrs.cpp
Go to the documentation of this file.
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
11#include "mlir/IR/Builders.h"
15
16#include "llvm/ADT/TypeSwitch.h"
17
18using namespace mlir;
19
20// These are automatically generated by ODS but are not used as the Transform
21// dialect uses a different dispatch mechanism to support dialect extensions.
22[[maybe_unused]] static OptionalParseResult
23generatedAttributeParser(AsmParser &parser, StringRef *mnemonic, Type type,
24 Attribute &value);
25[[maybe_unused]] static LogicalResult
27
28#define GET_ATTRDEF_CLASSES
29#include "mlir/Dialect/Transform/IR/TransformAttrs.cpp.inc"
30
31#include "mlir/Dialect/Transform/IR/TransformDialectEnums.cpp.inc"
32
33void transform::TransformDialect::initializeAttributes() {
34 addAttributesChecked<
35#define GET_ATTRDEF_LIST
36#include "mlir/Dialect/Transform/IR/TransformAttrs.cpp.inc"
37 >();
38}
static LogicalResult generatedAttributePrinter(Attribute def, AsmPrinter &printer)
static OptionalParseResult generatedAttributeParser(AsmParser &parser, StringRef *mnemonic, Type type, Attribute &value)
This base class exposes generic asm parser hooks, usable across the various derived parsers.
This base class exposes generic asm printer hooks, usable across the various derived printers.
Attributes are known-constant values of operations.
Definition Attributes.h:25
This class implements Optional functionality for ParseResult.
Instances of the Type class are uniqued, have an immutable identifier and an optional mutable compone...
Definition Types.h:74
Include the generated interface declarations.