Debian Codegraph @

third_party/spirv-cross/shaders-no-opt/asm/comp/loop-variable-with-initializer.asm.comp

raw
1 ; SPIR-V
2 ; Version: 1.3
3 ; Generator: Khronos; 0
4 ; Bound: 62
5 ; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint GLCompute %main "main"
9 OpExecutionMode %main LocalSize 1 1 1
10 OpName %main "main"
11 OpName %i "i"
12 %uint = OpTypeInt 32 0
13 %void = OpTypeVoid
14 %11 = OpTypeFunction %void
15 %uint_0 = OpConstant %uint 0
16 %_ptr_Function_uint = OpTypePointer Function %uint
17 %31 = OpConstantNull %uint
18 %main = OpFunction %void None %11
19 %14 = OpLabel
20 %i = OpVariable %_ptr_Function_uint Function %31
21 OpStore %i %uint_0
22 OpBranch %32
23 %32 = OpLabel
24 OpLoopMerge %33 %34 None
25 OpBranch %33
26 %34 = OpLabel
27 %57 = OpLoad %uint %i
28 OpBranch %32
29 %33 = OpLabel
30 OpReturn
31 OpFunctionEnd