/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
|*                                                                            *|
|* AttrDef Declarations                                                       *|
|*                                                                            *|
|* Automatically generated file, do not edit!                                 *|
|*                                                                            *|
\*===----------------------------------------------------------------------===*/

#ifdef GET_ATTRDEF_CLASSES
#undef GET_ATTRDEF_CLASSES


namespace mlir {
class AsmParser;
class AsmPrinter;
} // namespace mlir
namespace fir {
class FortranVariableFlagsAttr;
class FortranProcedureFlagsEnumAttr;
class ReduceAttr;
class LocationKindAttr;
class LocationKindArrayAttr;
namespace detail {
struct FortranVariableFlagsAttrStorage;
} // namespace detail
class FortranVariableFlagsAttr : public ::mlir::Attribute::AttrBase<FortranVariableFlagsAttr, ::mlir::Attribute, detail::FortranVariableFlagsAttrStorage> {
public:
  using Base::Base;
  static constexpr ::llvm::StringLiteral name = "fir.var_attrs";
  static constexpr ::llvm::StringLiteral dialectName = "fir";
  static FortranVariableFlagsAttr get(::mlir::MLIRContext *context, FortranVariableFlagsEnum flags);
  static constexpr ::llvm::StringLiteral getMnemonic() {
    return {"var_attrs"};
  }

  static ::mlir::Attribute parse(::mlir::AsmParser &odsParser, ::mlir::Type odsType);
  void print(::mlir::AsmPrinter &odsPrinter) const;
  FortranVariableFlagsEnum getFlags() const;
};
namespace detail {
struct FortranProcedureFlagsEnumAttrStorage;
} // namespace detail
class FortranProcedureFlagsEnumAttr : public ::mlir::Attribute::AttrBase<FortranProcedureFlagsEnumAttr, ::mlir::Attribute, detail::FortranProcedureFlagsEnumAttrStorage> {
public:
  using Base::Base;
  static constexpr ::llvm::StringLiteral name = "fir.proc_attrs";
  static constexpr ::llvm::StringLiteral dialectName = "fir";
  static FortranProcedureFlagsEnumAttr get(::mlir::MLIRContext *context, ::fir::FortranProcedureFlagsEnum value);
  static constexpr ::llvm::StringLiteral getMnemonic() {
    return {"proc_attrs"};
  }

  static ::mlir::Attribute parse(::mlir::AsmParser &odsParser, ::mlir::Type odsType);
  void print(::mlir::AsmPrinter &odsPrinter) const;
  ::fir::FortranProcedureFlagsEnum getValue() const;
};
namespace detail {
struct ReduceAttrStorage;
} // namespace detail
class ReduceAttr : public ::mlir::Attribute::AttrBase<ReduceAttr, ::mlir::Attribute, detail::ReduceAttrStorage> {
public:
  using Base::Base;
  static constexpr ::llvm::StringLiteral name = "fir.reduce_attr";
  static constexpr ::llvm::StringLiteral dialectName = "fir";
  static ReduceAttr get(::mlir::MLIRContext *context, ReduceOperationEnum reduce_operation);
  static constexpr ::llvm::StringLiteral getMnemonic() {
    return {"reduce_attr"};
  }

  static ::mlir::Attribute parse(::mlir::AsmParser &odsParser, ::mlir::Type odsType);
  void print(::mlir::AsmPrinter &odsPrinter) const;
  ReduceOperationEnum getReduceOperation() const;
};
namespace detail {
struct LocationKindAttrStorage;
} // namespace detail
class LocationKindAttr : public ::mlir::Attribute::AttrBase<LocationKindAttr, ::mlir::Attribute, detail::LocationKindAttrStorage> {
public:
  using Base::Base;
  static constexpr ::llvm::StringLiteral name = "fir.loc_kind";
  static constexpr ::llvm::StringLiteral dialectName = "fir";
  static LocationKindAttr get(::mlir::MLIRContext *context, ::fir::LocationKind value);
  static constexpr ::llvm::StringLiteral getMnemonic() {
    return {"loc_kind"};
  }

  static ::mlir::Attribute parse(::mlir::AsmParser &odsParser, ::mlir::Type odsType);
  void print(::mlir::AsmPrinter &odsPrinter) const;
  ::fir::LocationKind getValue() const;
};
namespace detail {
struct LocationKindArrayAttrStorage;
} // namespace detail
class LocationKindArrayAttr : public ::mlir::Attribute::AttrBase<LocationKindArrayAttr, ::mlir::Attribute, detail::LocationKindArrayAttrStorage> {
public:
  using Base::Base;
  auto begin() const { return getValue().begin(); }
  auto end() const { return getValue().end(); }
  bool empty() const { return getValue().empty(); }
  size_t size() const { return getValue().size(); }
  auto &front() const { return getValue().front(); }
  auto &back() const { return getValue().back(); }
  auto &operator[](size_t index) { return getValue()[index]; }
  operator ::llvm::ArrayRef<LocationKindAttr>() const { return getValue(); }
  static constexpr ::llvm::StringLiteral name = "fir.loc_kind_array";
  static constexpr ::llvm::StringLiteral dialectName = "fir";
  static LocationKindArrayAttr get(::mlir::MLIRContext *context, ::llvm::ArrayRef<LocationKindAttr> value);
  static constexpr ::llvm::StringLiteral getMnemonic() {
    return {"loc_kind_array"};
  }

  static ::mlir::Attribute parse(::mlir::AsmParser &odsParser, ::mlir::Type odsType);
  void print(::mlir::AsmPrinter &odsPrinter) const;
  ::llvm::ArrayRef<LocationKindAttr> getValue() const;
};
} // namespace fir
MLIR_DECLARE_EXPLICIT_TYPE_ID(::fir::FortranVariableFlagsAttr)
MLIR_DECLARE_EXPLICIT_TYPE_ID(::fir::FortranProcedureFlagsEnumAttr)
MLIR_DECLARE_EXPLICIT_TYPE_ID(::fir::ReduceAttr)
MLIR_DECLARE_EXPLICIT_TYPE_ID(::fir::LocationKindAttr)
MLIR_DECLARE_EXPLICIT_TYPE_ID(::fir::LocationKindArrayAttr)

#endif  // GET_ATTRDEF_CLASSES

