• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; SPIR-V
2; Version: 1.0
3; Generator: Khronos SPIR-V Tools Assembler; 0
4; Bound: 23
5; Schema: 0
6               OpCapability Addresses
7               OpCapability Linkage
8               OpCapability Kernel
9               OpCapability Int64
10               OpMemoryModel Physical64 OpenCL
11               OpEntryPoint Kernel %1 "unreachable_simple" %gl_GlobalInvocationID
12               OpName %in "in"
13               OpName %out "out"
14               OpDecorate %gl_GlobalInvocationID BuiltIn GlobalInvocationId
15               OpDecorate %gl_GlobalInvocationID Constant
16               OpDecorate %in FuncParamAttr NoCapture
17               OpDecorate %gl_GlobalInvocationID LinkageAttributes "__spirv_GlobalInvocationId" Import
18      %ulong = OpTypeInt 64 0
19    %v3ulong = OpTypeVector %ulong 3
20%_ptr_Input_v3ulong = OpTypePointer Input %v3ulong
21   %ulong_32 = OpConstant %ulong 32
22       %void = OpTypeVoid
23       %uint = OpTypeInt 32 0
24%_ptr_CrossWorkgroup_uint = OpTypePointer CrossWorkgroup %uint
25         %12 = OpTypeFunction %void %_ptr_CrossWorkgroup_uint %_ptr_CrossWorkgroup_uint
26%gl_GlobalInvocationID = OpVariable %_ptr_Input_v3ulong Input
27          %1 = OpFunction %void None %12
28         %in = OpFunctionParameter %_ptr_CrossWorkgroup_uint
29        %out = OpFunctionParameter %_ptr_CrossWorkgroup_uint
30         %13 = OpLabel
31         %14 = OpLoad %v3ulong %gl_GlobalInvocationID Aligned 0
32         %15 = OpCompositeExtract %ulong %14 0
33         %16 = OpShiftLeftLogical %ulong %15 %ulong_32
34         %17 = OpShiftRightArithmetic %ulong %16 %ulong_32
35         %18 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %in %17
36         %19 = OpInBoundsPtrAccessChain %_ptr_CrossWorkgroup_uint %out %17
37               OpBranch %20
38         %21 = OpLabel
39               OpUnreachable
40         %20 = OpLabel
41         %22 = OpLoad %uint %18
42               OpStore %19 %22
43               OpReturn
44               OpFunctionEnd
45