| 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 | |
| 15 | namespace mlir { |
| 16 | class AsmParser; |
| 17 | class AsmPrinter; |
| 18 | } // namespace mlir |
| 19 | namespace mlir::vector { |
| 20 | |
| 21 | /// Kind of combining function for contractions and reductions |
| 22 | class CombiningKindAttr; |
| 23 | /// Iterator type |
| 24 | class IteratorTypeAttr; |
| 25 | /// Punctuation for separating vectors or vector elements |
| 26 | class PrintPunctuationAttr; |
| 27 | namespace detail { |
| 28 | |
| 29 | struct CombiningKindAttrStorage; |
| 30 | |
| 31 | } // namespace detail |
| 32 | class CombiningKindAttr : public ::mlir::Attribute::AttrBase<CombiningKindAttr, ::mlir::Attribute, detail::CombiningKindAttrStorage> { |
| 33 | public: |
| 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 | }; |
| 46 | namespace detail { |
| 47 | |
| 48 | struct IteratorTypeAttrStorage; |
| 49 | |
| 50 | } // namespace detail |
| 51 | class IteratorTypeAttr : public ::mlir::Attribute::AttrBase<IteratorTypeAttr, ::mlir::Attribute, detail::IteratorTypeAttrStorage> { |
| 52 | public: |
| 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 | }; |
| 65 | namespace detail { |
| 66 | |
| 67 | struct PrintPunctuationAttrStorage; |
| 68 | |
| 69 | } // namespace detail |
| 70 | class PrintPunctuationAttr : public ::mlir::Attribute::AttrBase<PrintPunctuationAttr, ::mlir::Attribute, detail::PrintPunctuationAttrStorage> { |
| 71 | public: |
| 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 |
| 86 | MLIR_DECLARE_EXPLICIT_TYPE_ID(::mlir::vector::CombiningKindAttr) |
| 87 | MLIR_DECLARE_EXPLICIT_TYPE_ID(::mlir::vector::IteratorTypeAttr) |
| 88 | MLIR_DECLARE_EXPLICIT_TYPE_ID(::mlir::vector::PrintPunctuationAttr) |
| 89 | |
| 90 | #endif // GET_ATTRDEF_CLASSES |
| 91 | |
| 92 | |