/*===- 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;
/// Fortran procedure attributes
class FortranProcedureFlagsEnumAttr;
class ReduceAttr;
/// Flang location kind
class LocationKindAttr;
class LocationKindArrayAttr;
class PackArrayHeuristicsAttr;
/// An attribute implementing SafeTempArrayCopyAttrInterface.
///     It specifies whether it is possible to dynamically check
///     if creating a temporary copy of a Fortran array is safe
///     in the context of OpenACC.
///     It also provides the methods to generate those dynamic checks.
class OpenACCSafeTempArrayCopyAttr;
/// An attribute implementing SafeTempArrayCopyAttrInterface.
///     It specifies whether it is possible to dynamically check
///     if creating a temporary copy of a Fortran array is safe
///     in the context of OpenMP.
///     It also provides the methods to generate those dynamic checks.
class OpenMPSafeTempArrayCopyAttr;
/// Type of a locality specifier
class LocalitySpecifierTypeAttr;
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 detail {
struct PackArrayHeuristicsAttrStorage;
} // namespace detail
class PackArrayHeuristicsAttr : public ::mlir::Attribute::AttrBase<PackArrayHeuristicsAttr, ::mlir::Attribute, detail::PackArrayHeuristicsAttrStorage> {
public:
  using Base::Base;
  static constexpr ::llvm::StringLiteral name = "fir.pack_array_heuristics";
  static constexpr ::llvm::StringLiteral dialectName = "fir";
  static PackArrayHeuristicsAttr get(::mlir::MLIRContext *context, ::fir::PackArrayHeuristics value);
  static constexpr ::llvm::StringLiteral getMnemonic() {
    return {"pack_array_heuristics"};
  }

  static ::mlir::Attribute parse(::mlir::AsmParser &odsParser, ::mlir::Type odsType);
  void print(::mlir::AsmPrinter &odsPrinter) const;
  ::fir::PackArrayHeuristics getValue() const;
};
class OpenACCSafeTempArrayCopyAttr : public ::mlir::Attribute::AttrBase<OpenACCSafeTempArrayCopyAttr, ::mlir::Attribute, ::mlir::AttributeStorage> {
public:
  using Base::Base;
  static constexpr ::llvm::StringLiteral name = "fir.acc_safe_temp_array_copy";
  static constexpr ::llvm::StringLiteral dialectName = "fir";
  static constexpr ::llvm::StringLiteral getMnemonic() {
    return {"acc_safe_temp_array_copy"};
  }

};
class OpenMPSafeTempArrayCopyAttr : public ::mlir::Attribute::AttrBase<OpenMPSafeTempArrayCopyAttr, ::mlir::Attribute, ::mlir::AttributeStorage> {
public:
  using Base::Base;
  static constexpr ::llvm::StringLiteral name = "fir.omp_safe_temp_array_copy";
  static constexpr ::llvm::StringLiteral dialectName = "fir";
  static constexpr ::llvm::StringLiteral getMnemonic() {
    return {"omp_safe_temp_array_copy"};
  }

};
namespace detail {
struct LocalitySpecifierTypeAttrStorage;
} // namespace detail
class LocalitySpecifierTypeAttr : public ::mlir::Attribute::AttrBase<LocalitySpecifierTypeAttr, ::mlir::Attribute, detail::LocalitySpecifierTypeAttrStorage> {
public:
  using Base::Base;
  static constexpr ::llvm::StringLiteral name = "fir.locality_specifier_type";
  static constexpr ::llvm::StringLiteral dialectName = "fir";
  static LocalitySpecifierTypeAttr get(::mlir::MLIRContext *context, ::fir::LocalitySpecifierType value);
  static constexpr ::llvm::StringLiteral getMnemonic() {
    return {"locality_specifier_type"};
  }

  static ::mlir::Attribute parse(::mlir::AsmParser &odsParser, ::mlir::Type odsType);
  void print(::mlir::AsmPrinter &odsPrinter) const;
  ::fir::LocalitySpecifierType 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)
MLIR_DECLARE_EXPLICIT_TYPE_ID(::fir::PackArrayHeuristicsAttr)
MLIR_DECLARE_EXPLICIT_TYPE_ID(::fir::OpenACCSafeTempArrayCopyAttr)
MLIR_DECLARE_EXPLICIT_TYPE_ID(::fir::OpenMPSafeTempArrayCopyAttr)
MLIR_DECLARE_EXPLICIT_TYPE_ID(::fir::LocalitySpecifierTypeAttr)

#endif  // GET_ATTRDEF_CLASSES

