• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 26
5; 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          %5 = OpTypeFunction %int
17%_ptr_Function_int = OpTypePointer Function %int
18         %11 = OpConstantNull %int
19      %int_4 = OpConstant %int 4
20       %bool = OpTypeBool
21      %int_1 = OpConstant %int 1
22%unused_entry_point = OpFunction %void None %1
23          %4 = OpLabel
24               OpReturn
25               OpFunctionEnd
26          %f = OpFunction %int None %5
27          %8 = OpLabel
28          %i = OpVariable %_ptr_Function_int Function %11
29               OpBranch %12
30         %12 = OpLabel
31               OpLoopMerge %13 %14 None
32               OpBranch %15
33         %15 = OpLabel
34         %16 = OpLoad %int %i
35         %18 = OpSGreaterThan %bool %16 %int_4
36               OpSelectionMerge %20 None
37               OpBranchConditional %18 %21 %20
38         %21 = OpLabel
39         %22 = OpLoad %int %i
40               OpReturnValue %22
41         %20 = OpLabel
42               OpBranch %14
43         %14 = OpLabel
44         %23 = OpLoad %int %i
45         %25 = OpIAdd %int %23 %int_1
46               OpStore %i %25
47               OpBranch %12
48         %13 = OpLabel
49               OpReturnValue %11
50               OpFunctionEnd
51