llvm/tools/mlir/include/mlir/Dialect/XeGPU/IR/XeGPUEnums.h.inc

/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
|*                                                                            *|
|* Enum Utility Declarations                                                  *|
|*                                                                            *|
|* Automatically generated file, do not edit!                                 *|
|* From: XeGPUAttrs.td                                                        *|
|*                                                                            *|
\*===----------------------------------------------------------------------===*/

namespace mlir {
namespace xegpu {
// Cache policy
enum class CachePolicy : uint32_t {};

::std::optional<CachePolicy> symbolizeCachePolicy(uint32_t);
::llvm::StringRef stringifyCachePolicy(CachePolicy);
::std::optional<CachePolicy> symbolizeCachePolicy(::llvm::StringRef);
inline constexpr unsigned getMaxEnumValForCachePolicy() {}


inline ::llvm::StringRef stringifyEnum(CachePolicy enumValue) {}

template <typename EnumType>
::std::optional<EnumType> symbolizeEnum(::llvm::StringRef);

template <>
inline ::std::optional<CachePolicy> symbolizeEnum<CachePolicy>(::llvm::StringRef str) {}
} // namespace xegpu
} // namespace mlir

namespace mlir {
template <typename T, typename>
struct FieldParser;

template<>
struct FieldParser<::mlir::xegpu::CachePolicy, ::mlir::xegpu::CachePolicy> {};
} // namespace mlir

namespace llvm {
inline ::llvm::raw_ostream &operator<<(::llvm::raw_ostream &p, ::mlir::xegpu::CachePolicy value) {}
} // namespace llvm

namespace llvm {
template<> struct DenseMapInfo<::mlir::xegpu::CachePolicy> {};
}

namespace mlir {
namespace xegpu {
// The enumeration for the scope of fence operation.
enum class FenceScope : uint32_t {};

::std::optional<FenceScope> symbolizeFenceScope(uint32_t);
::llvm::StringRef stringifyFenceScope(FenceScope);
::std::optional<FenceScope> symbolizeFenceScope(::llvm::StringRef);
inline constexpr unsigned getMaxEnumValForFenceScope() {}


inline ::llvm::StringRef stringifyEnum(FenceScope enumValue) {}

template <typename EnumType>
::std::optional<EnumType> symbolizeEnum(::llvm::StringRef);

template <>
inline ::std::optional<FenceScope> symbolizeEnum<FenceScope>(::llvm::StringRef str) {}
} // namespace xegpu
} // namespace mlir

namespace mlir {
template <typename T, typename>
struct FieldParser;

template<>
struct FieldParser<::mlir::xegpu::FenceScope, ::mlir::xegpu::FenceScope> {};
} // namespace mlir

namespace llvm {
inline ::llvm::raw_ostream &operator<<(::llvm::raw_ostream &p, ::mlir::xegpu::FenceScope value) {}
} // namespace llvm

namespace llvm {
template<> struct DenseMapInfo<::mlir::xegpu::FenceScope> {};
}

namespace mlir {
namespace xegpu {
// The address space of the memory the tensor descritor is created for
enum class MemorySpace : uint32_t {};

::std::optional<MemorySpace> symbolizeMemorySpace(uint32_t);
::llvm::StringRef stringifyMemorySpace(MemorySpace);
::std::optional<MemorySpace> symbolizeMemorySpace(::llvm::StringRef);
inline constexpr unsigned getMaxEnumValForMemorySpace() {}


inline ::llvm::StringRef stringifyEnum(MemorySpace enumValue) {}

template <typename EnumType>
::std::optional<EnumType> symbolizeEnum(::llvm::StringRef);

template <>
inline ::std::optional<MemorySpace> symbolizeEnum<MemorySpace>(::llvm::StringRef str) {}
} // namespace xegpu
} // namespace mlir

namespace mlir {
template <typename T, typename>
struct FieldParser;

template<>
struct FieldParser<::mlir::xegpu::MemorySpace, ::mlir::xegpu::MemorySpace> {};
} // namespace mlir

namespace llvm {
inline ::llvm::raw_ostream &operator<<(::llvm::raw_ostream &p, ::mlir::xegpu::MemorySpace value) {}
} // namespace llvm

namespace llvm {
template<> struct DenseMapInfo<::mlir::xegpu::MemorySpace> {};
}