Ben Clayton | 2ba8315 | 2021-07-08 10:00:17 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
Antonio Maiorano | 5b3707a | 2022-09-13 17:32:17 +0000 | [diff] [blame] | 4 | ; Bound: 22 |
Ben Clayton | 2ba8315 | 2021-07-08 10:00:17 +0000 | [diff] [blame] | 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 | %_ptr_Function_int = OpTypePointer Function %int |
| 17 | %10 = OpConstantNull %int |
Ben Clayton | e5919ac | 2022-01-14 17:16:32 +0000 | [diff] [blame] | 18 | %bool = OpTypeBool |
Antonio Maiorano | 5b3707a | 2022-09-13 17:32:17 +0000 | [diff] [blame] | 19 | %true = OpConstantTrue %bool |
Ben Clayton | 2ba8315 | 2021-07-08 10:00:17 +0000 | [diff] [blame] | 20 | %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 Maiorano | 5b3707a | 2022-09-13 17:32:17 +0000 | [diff] [blame] | 33 | OpSelectionMerge %17 None |
| 34 | OpBranchConditional %true %18 %17 |
Ben Clayton | e5919ac | 2022-01-14 17:16:32 +0000 | [diff] [blame] | 35 | %18 = OpLabel |
Antonio Maiorano | 5b3707a | 2022-09-13 17:32:17 +0000 | [diff] [blame] | 36 | OpBranch %12 |
| 37 | %17 = OpLabel |
Ben Clayton | 2ba8315 | 2021-07-08 10:00:17 +0000 | [diff] [blame] | 38 | OpBranch %13 |
| 39 | %13 = OpLabel |
Antonio Maiorano | 5b3707a | 2022-09-13 17:32:17 +0000 | [diff] [blame] | 40 | %19 = OpLoad %int %i |
| 41 | %21 = OpIAdd %int %19 %int_1 |
| 42 | OpStore %i %21 |
Ben Clayton | 2ba8315 | 2021-07-08 10:00:17 +0000 | [diff] [blame] | 43 | OpBranch %11 |
| 44 | %12 = OpLabel |
| 45 | OpReturn |
| 46 | OpFunctionEnd |