Debian Codegraph @

third_party/spirv-cross/shaders/asm/frag/for-loop-phi-only-continue.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 6
4 ; Bound: 51
5 ; Schema: 0
6 OpCapability Shader
7 %1 = OpExtInstImport "GLSL.std.450"
8 OpMemoryModel Logical GLSL450
9 OpEntryPoint Fragment %main "main" %FragColor
10 OpExecutionMode %main OriginUpperLeft
11 OpSource GLSL 450
12 OpName %main "main"
13 OpName %FragColor "FragColor"
14 OpDecorate %FragColor Location 0
15 %void = OpTypeVoid
16 %3 = OpTypeFunction %void
17 %float = OpTypeFloat 32
18 %float_0 = OpConstant %float 0
19 %int = OpTypeInt 32 1
20 %int_0 = OpConstant %int 0
21 %int_16 = OpConstant %int 16
22 %bool = OpTypeBool
23 %float_1 = OpConstant %float 1
24 %int_1 = OpConstant %int 1
25 %float_2 = OpConstant %float 2
26 %v4float = OpTypeVector %float 4
27 %_ptr_Output_v4float = OpTypePointer Output %v4float
28 %FragColor = OpVariable %_ptr_Output_v4float Output
29 %main = OpFunction %void None %3
30 %5 = OpLabel
31 OpBranch %14
32 %14 = OpLabel
33 %50 = OpPhi %float %float_0 %5 %25 %15
34 %47 = OpPhi %int %int_0 %5 %28 %15
35 %22 = OpSLessThan %bool %47 %int_16
36 OpLoopMerge %16 %15 None
37 OpBranchConditional %22 %body1 %16
38 %body1 = OpLabel
39 %25 = OpFAdd %float %50 %float_1
40 %28 = OpIAdd %int %47 %int_1
41 OpBranch %15
42 %15 = OpLabel
43 OpBranch %14
44 %16 = OpLabel
45 %46 = OpCompositeConstruct %v4float %50 %50 %50 %50
46 OpStore %FragColor %46
47 OpReturn
48 OpFunctionEnd