1/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
2|* *|
3|* AttrDef Declarations *|
4|* *|
5|* Automatically generated file, do not edit! *|
6|* *|
7\*===----------------------------------------------------------------------===*/
8
9#ifdef GET_ATTRDEF_CLASSES
10#undef GET_ATTRDEF_CLASSES
11
12#include "mlir/IR/Attributes.h"
13
14
15namespace mlir {
16class AsmParser;
17class AsmPrinter;
18} // namespace mlir
19namespace mlir::vector {
20
21/// Kind of combining function for contractions and reductions
22class CombiningKindAttr;
23/// Iterator type
24class IteratorTypeAttr;
25/// Punctuation for separating vectors or vector elements
26class PrintPunctuationAttr;
27namespace detail {
28
29struct CombiningKindAttrStorage;
30
31} // namespace detail
32class CombiningKindAttr : public ::mlir::Attribute::AttrBase<CombiningKindAttr, ::mlir::Attribute, detail::CombiningKindAttrStorage> {
33public:
34 using Base::Base;
35 static constexpr ::llvm::StringLiteral name = "vector.kind";
36 static constexpr ::llvm::StringLiteral dialectName = "vector";
37 static CombiningKindAttr get(::mlir::MLIRContext *context, ::mlir::vector::CombiningKind value);
38 static constexpr ::llvm::StringLiteral getMnemonic() {
39 return {"kind"};
40 }
41
42 static ::mlir::Attribute parse(::mlir::AsmParser &odsParser, ::mlir::Type odsType);
43 void print(::mlir::AsmPrinter &odsPrinter) const;
44 ::mlir::vector::CombiningKind getValue() const;
45};
46namespace detail {
47
48struct IteratorTypeAttrStorage;
49
50} // namespace detail
51class IteratorTypeAttr : public ::mlir::Attribute::AttrBase<IteratorTypeAttr, ::mlir::Attribute, detail::IteratorTypeAttrStorage> {
52public:
53 using Base::Base;
54 static constexpr ::llvm::StringLiteral name = "vector.iterator_type";
55 static constexpr ::llvm::StringLiteral dialectName = "vector";
56 static IteratorTypeAttr get(::mlir::MLIRContext *context, ::mlir::vector::IteratorType value);
57 static constexpr ::llvm::StringLiteral getMnemonic() {
58 return {"iterator_type"};
59 }
60
61 static ::mlir::Attribute parse(::mlir::AsmParser &odsParser, ::mlir::Type odsType);
62 void print(::mlir::AsmPrinter &odsPrinter) const;
63 ::mlir::vector::IteratorType getValue() const;
64};
65namespace detail {
66
67struct PrintPunctuationAttrStorage;
68
69} // namespace detail
70class PrintPunctuationAttr : public ::mlir::Attribute::AttrBase<PrintPunctuationAttr, ::mlir::Attribute, detail::PrintPunctuationAttrStorage> {
71public:
72 using Base::Base;
73 static constexpr ::llvm::StringLiteral name = "vector.punctuation";
74 static constexpr ::llvm::StringLiteral dialectName = "vector";
75 static PrintPunctuationAttr get(::mlir::MLIRContext *context, ::mlir::vector::PrintPunctuation value);
76 static constexpr ::llvm::StringLiteral getMnemonic() {
77 return {"punctuation"};
78 }
79
80 static ::mlir::Attribute parse(::mlir::AsmParser &odsParser, ::mlir::Type odsType);
81 void print(::mlir::AsmPrinter &odsPrinter) const;
82 ::mlir::vector::PrintPunctuation getValue() const;
83};
84
85} // namespace mlir::vector
86MLIR_DECLARE_EXPLICIT_TYPE_ID(::mlir::vector::CombiningKindAttr)
87MLIR_DECLARE_EXPLICIT_TYPE_ID(::mlir::vector::IteratorTypeAttr)
88MLIR_DECLARE_EXPLICIT_TYPE_ID(::mlir::vector::PrintPunctuationAttr)
89
90#endif // GET_ATTRDEF_CLASSES
91
92