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

#ifdef GET_TYPEDEF_CLASSES
#undef GET_TYPEDEF_CLASSES


namespace mlir {
class AsmParser;
class AsmPrinter;
} // namespace mlir
namespace mlir::pdl {

/// PDL handle to an `mlir::Attribute`
/// This type represents a handle to an instance of an `mlir::Attribute`, bound
///     to a value that is usable within a PDL pattern or rewrite.
class AttributeType;
/// PDL handle to an `mlir::Operation *`
/// This type represents a handle to an instance of an `mlir::Operation *`,
///     bound to a value that is usable within a PDL pattern or rewrite.
class OperationType;
/// PDL handle to a range of a given sub-type
/// This type represents a range of instances of the given PDL element type,
///     i.e. `Attribute`, `Operation`, `Type`, or `Value`.
class RangeType;
/// PDL handle to an `mlir::Type`
/// This type represents a handle to an instance of an `mlir::Type`, bound to a
///     value that is usable within a PDL pattern or rewrite.
class TypeType;
/// PDL handle for an `mlir::Value`
/// This type represents a handle to an instance of an `mlir::Value`, bound to a
///     value that is usable within a PDL pattern or rewrite.
class ValueType;
class AttributeType : public ::mlir::Type::TypeBase<AttributeType, ::mlir::pdl::PDLType, ::mlir::TypeStorage> {
public:
  using Base::Base;
  static constexpr ::llvm::StringLiteral name = "pdl.attribute";
  static constexpr ::llvm::StringLiteral dialectName = "pdl";
  static constexpr ::llvm::StringLiteral getMnemonic() {
    return {"attribute"};
  }

};
class OperationType : public ::mlir::Type::TypeBase<OperationType, ::mlir::pdl::PDLType, ::mlir::TypeStorage> {
public:
  using Base::Base;
  static constexpr ::llvm::StringLiteral name = "pdl.operation";
  static constexpr ::llvm::StringLiteral dialectName = "pdl";
  static constexpr ::llvm::StringLiteral getMnemonic() {
    return {"operation"};
  }

};
namespace detail {

struct RangeTypeStorage;

} // namespace detail
class RangeType : public ::mlir::Type::TypeBase<RangeType, ::mlir::pdl::PDLType, detail::RangeTypeStorage> {
public:
  using Base::Base;
  static constexpr ::llvm::StringLiteral name = "pdl.range";
  static constexpr ::llvm::StringLiteral dialectName = "pdl";
  using Base::getChecked;
  static RangeType get(Type elementType);
  static RangeType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, Type elementType);
  static ::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, Type elementType);
  static ::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, Type elementType);
  static constexpr ::llvm::StringLiteral getMnemonic() {
    return {"range"};
  }

  static ::mlir::Type parse(::mlir::AsmParser &odsParser);
  void print(::mlir::AsmPrinter &odsPrinter) const;
  Type getElementType() const;
};
class TypeType : public ::mlir::Type::TypeBase<TypeType, ::mlir::pdl::PDLType, ::mlir::TypeStorage> {
public:
  using Base::Base;
  static constexpr ::llvm::StringLiteral name = "pdl.type";
  static constexpr ::llvm::StringLiteral dialectName = "pdl";
  static constexpr ::llvm::StringLiteral getMnemonic() {
    return {"type"};
  }

};
class ValueType : public ::mlir::Type::TypeBase<ValueType, ::mlir::pdl::PDLType, ::mlir::TypeStorage> {
public:
  using Base::Base;
  static constexpr ::llvm::StringLiteral name = "pdl.value";
  static constexpr ::llvm::StringLiteral dialectName = "pdl";
  static constexpr ::llvm::StringLiteral getMnemonic() {
    return {"value"};
  }

};

} // namespace mlir::pdl
MLIR_DECLARE_EXPLICIT_TYPE_ID(::mlir::pdl::AttributeType)
MLIR_DECLARE_EXPLICIT_TYPE_ID(::mlir::pdl::OperationType)
MLIR_DECLARE_EXPLICIT_TYPE_ID(::mlir::pdl::RangeType)
MLIR_DECLARE_EXPLICIT_TYPE_ID(::mlir::pdl::TypeType)
MLIR_DECLARE_EXPLICIT_TYPE_ID(::mlir::pdl::ValueType)

#endif // GET_TYPEDEF_CLASSES

