15 #include "llvm/ADT/SetVector.h"
16 #include "llvm/ADT/StringExtras.h"
23 #include "mlir/Dialect/SPIRV/IR/SPIRVEnums.cpp.inc"
26 #include "mlir/Dialect/SPIRV/IR/SPIRVEnumAvailability.cpp.inc"
35 #define V_1_3_IMPLIED_EXTS \
36 Extension::SPV_KHR_shader_draw_parameters, Extension::SPV_KHR_16bit_storage, \
37 Extension::SPV_KHR_device_group, Extension::SPV_KHR_multiview, \
38 Extension::SPV_KHR_storage_buffer_storage_class, \
39 Extension::SPV_KHR_variable_pointers
41 #define V_1_4_IMPLIED_EXTS \
42 Extension::SPV_KHR_no_integer_wrap_decoration, \
43 Extension::SPV_GOOGLE_decorate_string, \
44 Extension::SPV_GOOGLE_hlsl_functionality1, \
45 Extension::SPV_KHR_float_controls
47 #define V_1_5_IMPLIED_EXTS \
48 Extension::SPV_KHR_8bit_storage, Extension::SPV_EXT_descriptor_indexing, \
49 Extension::SPV_EXT_shader_viewport_index_layer, \
50 Extension::SPV_EXT_physical_storage_buffer, \
51 Extension::SPV_KHR_physical_storage_buffer, \
52 Extension::SPV_KHR_vulkan_memory_model
54 #define V_1_6_IMPLIED_EXTS \
55 Extension::SPV_KHR_non_semantic_info, \
56 Extension::SPV_KHR_integer_dot_product, \
57 Extension::SPV_KHR_terminate_invocation, \
58 Extension::SPV_EXT_demote_to_helper_invocation
63 case Version::V_1_3: {
68 case Version::V_1_4: {
72 case Version::V_1_5: {
77 case Version::V_1_6: {
84 #undef V_1_6_IMPLIED_EXTS
85 #undef V_1_5_IMPLIED_EXTS
86 #undef V_1_4_IMPLIED_EXTS
87 #undef V_1_3_IMPLIED_EXTS
91 #include "mlir/Dialect/SPIRV/IR/SPIRVCapabilityImplication.inc"
97 directCaps.begin(), directCaps.end());
101 for (
unsigned i = 0; i < allCaps.size(); ++i)
105 return allCaps.takeVector();
#define V_1_6_IMPLIED_EXTS
#define V_1_3_IMPLIED_EXTS
#define V_1_4_IMPLIED_EXTS
#define V_1_5_IMPLIED_EXTS
SmallVector< Capability, 0 > getRecursiveImpliedCapabilities(Capability cap)
Returns the recursively implied capabilities for the given capability.
ArrayRef< Extension > getImpliedExtensions(Version version)
Returns the implied extensions for the given version.
ArrayRef< Capability > getDirectImpliedCapabilities(Capability cap)
Returns the directly implied capabilities for the given capability.
Include the generated interface declarations.