blob: 34bf3bb29942c456b7d8935a178deac627f77499 [file] [log] [blame]
Ben Clayton2ba83152021-07-08 10:00:17 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
Antonio Maiorano5b3707a2022-09-13 17:32:17 +00004; Bound: 22
Ben Clayton2ba83152021-07-08 10:00:17 +00005; Schema: 0
6 OpCapability Shader
7 OpMemoryModel Logical GLSL450
8 OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
9 OpExecutionMode %unused_entry_point LocalSize 1 1 1
10 OpName %unused_entry_point "unused_entry_point"
11 OpName %f "f"
12 OpName %i "i"
13 %void = OpTypeVoid
14 %1 = OpTypeFunction %void
15 %int = OpTypeInt 32 1
16%_ptr_Function_int = OpTypePointer Function %int
17 %10 = OpConstantNull %int
Ben Claytone5919ac2022-01-14 17:16:32 +000018 %bool = OpTypeBool
Antonio Maiorano5b3707a2022-09-13 17:32:17 +000019 %true = OpConstantTrue %bool
Ben Clayton2ba83152021-07-08 10:00:17 +000020 %int_1 = OpConstant %int 1
21%unused_entry_point = OpFunction %void None %1
22 %4 = OpLabel
23 OpReturn
24 OpFunctionEnd
25 %f = OpFunction %void None %1
26 %6 = OpLabel
27 %i = OpVariable %_ptr_Function_int Function %10
28 OpBranch %11
29 %11 = OpLabel
30 OpLoopMerge %12 %13 None
31 OpBranch %14
32 %14 = OpLabel
Antonio Maiorano5b3707a2022-09-13 17:32:17 +000033 OpSelectionMerge %17 None
34 OpBranchConditional %true %18 %17
Ben Claytone5919ac2022-01-14 17:16:32 +000035 %18 = OpLabel
Antonio Maiorano5b3707a2022-09-13 17:32:17 +000036 OpBranch %12
37 %17 = OpLabel
Ben Clayton2ba83152021-07-08 10:00:17 +000038 OpBranch %13
39 %13 = OpLabel
Antonio Maiorano5b3707a2022-09-13 17:32:17 +000040 %19 = OpLoad %int %i
41 %21 = OpIAdd %int %19 %int_1
42 OpStore %i %21
Ben Clayton2ba83152021-07-08 10:00:17 +000043 OpBranch %11
44 %12 = OpLabel
45 OpReturn
46 OpFunctionEnd