/*===- 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 ReduceAttr;
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 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 fir
MLIR_DECLARE_EXPLICIT_TYPE_ID(::fir::FortranVariableFlagsAttr)
MLIR_DECLARE_EXPLICIT_TYPE_ID(::fir::ReduceAttr)

#endif  // GET_ATTRDEF_CLASSES

