Debian Codegraph @

third_party/spirv-cross/shaders/asm/frag/do-while-statement-fallback.asm.frag

raw
1 ; SPIR-V
2 ; Version: 1.0
3 ; Generator: Khronos Glslang Reference Front End; 7
4 ; Bound: 35
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 %foo "foo"
14 OpName %FragColor "FragColor"
15 OpDecorate %FragColor Location 0
16 %void = OpTypeVoid
17 %3 = OpTypeFunction %void
18 %float = OpTypeFloat 32
19 %_ptr_Function_float = OpTypePointer Function %float
20 %float_1 = OpConstant %float 1
21 %float_2 = OpConstant %float 2
22 %bool = OpTypeBool
23 %false = OpConstantFalse %bool
24 %float_3 = OpConstant %float 3
25 %float_4 = OpConstant %float 4
26 %float_5 = OpConstant %float 5
27 %_ptr_Output_float = OpTypePointer Output %float
28 %FragColor = OpVariable %_ptr_Output_float Output
29 %main = OpFunction %void None %3
30 %5 = OpLabel
31 %foo = OpVariable %_ptr_Function_float Function
32 OpStore %foo %float_1
33 OpBranch %10
34 %10 = OpLabel
35 OpLoopMerge %12 %13 None
36 OpBranch %11
37 %11 = OpLabel
38 OpBranch %13
39 %13 = OpLabel
40 OpStore %foo %float_2
41 OpBranchConditional %false %10 %12
42 %12 = OpLabel
43 OpBranch %17
44 %17 = OpLabel
45 OpLoopMerge %19 %20 None
46 OpBranch %18
47 %18 = OpLabel
48 OpBranch %20
49 %20 = OpLabel
50 OpStore %foo %float_3
51 OpBranchConditional %false %17 %19
52 %19 = OpLabel
53 OpBranch %22
54 %22 = OpLabel
55 OpLoopMerge %24 %25 None
56 OpBranch %23
57 %23 = OpLabel
58 OpBranch %25
59 %25 = OpLabel
60 OpStore %foo %float_4
61 OpBranchConditional %false %22 %24
62 %24 = OpLabel
63 OpBranch %27
64 %27 = OpLabel
65 OpLoopMerge %29 %30 None
66 OpBranch %28
67 %28 = OpLabel
68 OpBranch %30
69 %30 = OpLabel
70 OpStore %foo %float_5
71 OpBranchConditional %false %27 %29
72 %29 = OpLabel
73 %34 = OpLoad %float %foo
74 OpStore %FragColor %34
75 OpReturn
76 OpFunctionEnd