[mlir][spirv] Float atomics should not imply Shader

Differential Revision: https://reviews.llvm.org/D114551
This commit is contained in:
Butygin 2021-10-28 19:04:35 +03:00
parent a5c2f78287
commit 467acf3b6b
1 changed files with 6 additions and 3 deletions

View File

@ -1210,19 +1210,22 @@ def SPV_C_IntegerFunctions2INTEL : I32EnumAttrCase<"Integer
]; ];
} }
def SPV_C_AtomicFloat32AddEXT : I32EnumAttrCase<"AtomicFloat32AddEXT", 6033> { def SPV_C_AtomicFloat32AddEXT : I32EnumAttrCase<"AtomicFloat32AddEXT", 6033> {
list<I32EnumAttrCase> implies = [SPV_C_Shader]; // Float atomics also supported in kernels (https://github.com/KhronosGroup/SPIRV-Headers/pull/257).
// list<I32EnumAttrCase> implies = [SPV_C_Shader];
list<Availability> availability = [ list<Availability> availability = [
Extension<[SPV_EXT_shader_atomic_float_add]> Extension<[SPV_EXT_shader_atomic_float_add]>
]; ];
} }
def SPV_C_AtomicFloat64AddEXT : I32EnumAttrCase<"AtomicFloat64AddEXT", 6034> { def SPV_C_AtomicFloat64AddEXT : I32EnumAttrCase<"AtomicFloat64AddEXT", 6034> {
list<I32EnumAttrCase> implies = [SPV_C_Shader]; // Float atomics also supported in kernels (https://github.com/KhronosGroup/SPIRV-Headers/pull/257).
// list<I32EnumAttrCase> implies = [SPV_C_Shader];
list<Availability> availability = [ list<Availability> availability = [
Extension<[SPV_EXT_shader_atomic_float_add]> Extension<[SPV_EXT_shader_atomic_float_add]>
]; ];
} }
def SPV_C_AtomicFloat16AddEXT : I32EnumAttrCase<"AtomicFloat16AddEXT", 6095> { def SPV_C_AtomicFloat16AddEXT : I32EnumAttrCase<"AtomicFloat16AddEXT", 6095> {
list<I32EnumAttrCase> implies = [SPV_C_Shader]; // Float atomics also supported in kernels (https://github.com/KhronosGroup/SPIRV-Headers/pull/257).
// list<I32EnumAttrCase> implies = [SPV_C_Shader];
list<Availability> availability = [ list<Availability> availability = [
Extension<[SPV_EXT_shader_atomic_float16_add]> Extension<[SPV_EXT_shader_atomic_float16_add]>
]; ];