Files
gps/tools/local/circt/include/mlir/Dialect/SPIRV/IR/SPIRVAttrUtils.inc
T
2026-07-12 11:01:51 +03:00

190 lines
7.1 KiB
C++

/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
|* *|
|* SPIR-V Attribute Utilities *|
|* *|
|* Automatically generated file, do not edit! *|
|* From: SPIRVBase.td *|
|* *|
\*===----------------------------------------------------------------------===*/
#ifndef MLIR_DIALECT_SPIRV_IR_ATTR_UTILS_H_
#define MLIR_DIALECT_SPIRV_IR_ATTR_UTILS_H_
template <typename EnumClass> inline constexpr StringRef attributeName();
template <> inline StringRef attributeName<Version>() {
static constexpr const char attrName[] = "version";
return attrName;
}
template <> inline StringRef attributeName<DeviceType>() {
static constexpr const char attrName[] = "device_type";
return attrName;
}
template <> inline StringRef attributeName<Vendor>() {
static constexpr const char attrName[] = "vendor";
return attrName;
}
template <> inline StringRef attributeName<ClientAPI>() {
static constexpr const char attrName[] = "client_api";
return attrName;
}
template <> inline StringRef attributeName<Extension>() {
static constexpr const char attrName[] = "extension";
return attrName;
}
template <> inline StringRef attributeName<Capability>() {
static constexpr const char attrName[] = "capability";
return attrName;
}
template <> inline StringRef attributeName<AddressingModel>() {
static constexpr const char attrName[] = "addressing_model";
return attrName;
}
template <> inline StringRef attributeName<BuiltIn>() {
static constexpr const char attrName[] = "built_in";
return attrName;
}
template <> inline StringRef attributeName<Decoration>() {
static constexpr const char attrName[] = "decoration";
return attrName;
}
template <> inline StringRef attributeName<Dim>() {
static constexpr const char attrName[] = "dim";
return attrName;
}
template <> inline StringRef attributeName<ExecutionMode>() {
static constexpr const char attrName[] = "execution_mode";
return attrName;
}
template <> inline StringRef attributeName<ExecutionModel>() {
static constexpr const char attrName[] = "execution_model";
return attrName;
}
template <> inline StringRef attributeName<FPEncoding>() {
static constexpr const char attrName[] = "fp_encoding";
return attrName;
}
template <> inline StringRef attributeName<FPRoundingMode>() {
static constexpr const char attrName[] = "fp_rounding_mode";
return attrName;
}
template <> inline StringRef attributeName<FunctionControl>() {
static constexpr const char attrName[] = "function_control";
return attrName;
}
template <> inline StringRef attributeName<GroupOperation>() {
static constexpr const char attrName[] = "group_operation";
return attrName;
}
template <> inline StringRef attributeName<ImageFormat>() {
static constexpr const char attrName[] = "image_format";
return attrName;
}
template <> inline StringRef attributeName<ImageOperands>() {
static constexpr const char attrName[] = "image_operands";
return attrName;
}
template <> inline StringRef attributeName<LinkageType>() {
static constexpr const char attrName[] = "linkage_type";
return attrName;
}
template <> inline StringRef attributeName<LoopControl>() {
static constexpr const char attrName[] = "loop_control";
return attrName;
}
template <> inline StringRef attributeName<MemoryAccess>() {
static constexpr const char attrName[] = "memory_access";
return attrName;
}
template <> inline StringRef attributeName<MemoryModel>() {
static constexpr const char attrName[] = "memory_model";
return attrName;
}
template <> inline StringRef attributeName<MemorySemantics>() {
static constexpr const char attrName[] = "memory_semantics";
return attrName;
}
template <> inline StringRef attributeName<Scope>() {
static constexpr const char attrName[] = "scope";
return attrName;
}
template <> inline StringRef attributeName<SelectionControl>() {
static constexpr const char attrName[] = "selection_control";
return attrName;
}
template <> inline StringRef attributeName<StorageClass>() {
static constexpr const char attrName[] = "storage_class";
return attrName;
}
template <> inline StringRef attributeName<PackedVectorFormat>() {
static constexpr const char attrName[] = "packed_vector_format";
return attrName;
}
template <> inline StringRef attributeName<ImageDepthInfo>() {
static constexpr const char attrName[] = "image_depth_info";
return attrName;
}
template <> inline StringRef attributeName<ImageArrayedInfo>() {
static constexpr const char attrName[] = "image_arrayed_info";
return attrName;
}
template <> inline StringRef attributeName<ImageSamplingInfo>() {
static constexpr const char attrName[] = "image_sampling_info";
return attrName;
}
template <> inline StringRef attributeName<ImageSamplerUseInfo>() {
static constexpr const char attrName[] = "image_sampler_use_info";
return attrName;
}
template <> inline StringRef attributeName<MatrixLayout>() {
static constexpr const char attrName[] = "matrix_layout";
return attrName;
}
template <> inline StringRef attributeName<CooperativeMatrixUseKHR>() {
static constexpr const char attrName[] = "cooperative_matrix_use_khr";
return attrName;
}
template <> inline StringRef attributeName<CooperativeMatrixLayoutKHR>() {
static constexpr const char attrName[] = "cooperative_matrix_layout_khr";
return attrName;
}
template <> inline StringRef attributeName<CooperativeMatrixOperandsKHR>() {
static constexpr const char attrName[] = "cooperative_matrix_operands_khr";
return attrName;
}
template <> inline StringRef attributeName<LoadCacheControl>() {
static constexpr const char attrName[] = "load_cache_control";
return attrName;
}
template <> inline StringRef attributeName<StoreCacheControl>() {
static constexpr const char attrName[] = "store_cache_control";
return attrName;
}
template <> inline StringRef attributeName<QuadSwapDirection>() {
static constexpr const char attrName[] = "quad_swap_direction";
return attrName;
}
template <> inline StringRef attributeName<Opcode>() {
static constexpr const char attrName[] = "opcode";
return attrName;
}
template <> inline StringRef attributeName<FPFastMathMode>() {
static constexpr const char attrName[] = "fp_fast_math_mode";
return attrName;
}
template <> inline StringRef attributeName<TosaExtAccType>() {
static constexpr const char attrName[] = "tosa_ext_acc_type";
return attrName;
}
template <> inline StringRef attributeName<TosaExtResizeModeType>() {
static constexpr const char attrName[] = "tosa_ext_resize_mode_type";
return attrName;
}
template <> inline StringRef attributeName<TosaExtNaNPropagationModeType>() {
static constexpr const char attrName[] = "tosa_ext_na_n_propagation_mode_type";
return attrName;
}
template <> inline StringRef attributeName<TosaExtRoundingModeType>() {
static constexpr const char attrName[] = "tosa_ext_rounding_mode_type";
return attrName;
}
#endif // MLIR_DIALECT_SPIRV_IR_ATTR_UTILS_H