| ; SPIR-V |
| ; Version: 1.0 |
| ; Generator: Khronos LLVM/SPIR-V Translator; 14 |
| ; Bound: 16 |
| ; Schema: 0 |
| OpCapability Addresses |
| OpCapability Kernel |
| %1 = OpExtInstImport "OpenCL.std" |
| OpMemoryModel Physical64 OpenCL |
| OpEntryPoint Kernel %9 "spec_const_kernel" |
| %15 = OpString "kernel_arg_type.spec_const_kernel.uint*," |
| OpSource OpenCL_C 102000 |
| OpName %spec_const_kernel_spec_constant_value "spec_const_kernel.spec_constant_value" |
| OpName %output_value "output_value" |
| OpName %entry "entry" |
| OpName %add "add" |
| OpDecorate %spec_const_kernel_spec_constant_value Constant |
| OpDecorate %spec_const_kernel_spec_constant_value Alignment 4 |
| OpDecorate %uint_0 SpecId 101 |
| %uint = OpTypeInt 32 0 |
| %uint_0 = OpSpecConstant %uint 0 |
| %_ptr_UniformConstant_uint = OpTypePointer UniformConstant %uint |
| %void = OpTypeVoid |
| %_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint |
| %8 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint |
| %spec_const_kernel_spec_constant_value = OpVariable %_ptr_UniformConstant_uint UniformConstant %uint_0 |
| %9 = OpFunction %void None %8 |
| %output_value = OpFunctionParameter %_ptr_CrossWorkgroup_uint |
| %entry = OpLabel |
| %12 = OpLoad %uint %output_value Aligned 4 |
| %13 = OpLoad %uint %spec_const_kernel_spec_constant_value Aligned 4 |
| %add = OpIAdd %uint %12 %13 |
| OpStore %output_value %add Aligned 4 |
| OpReturn |
| OpFunctionEnd |