| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 58 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpCapability VulkanMemoryModel | |
| OpCapability VulkanMemoryModelDeviceScope | |
| OpCapability CooperativeMatrixKHR | |
| OpExtension "SPV_KHR_vulkan_memory_model" | |
| OpExtension "SPV_KHR_cooperative_matrix" | |
| OpMemoryModel Logical Vulkan | |
| OpEntryPoint GLCompute %main "main" %main_local_invocation_index_Input | |
| OpExecutionMode %main LocalSize 32 1 1 | |
| OpName %v "v" | |
| OpName %main_local_invocation_index_Input "main_local_invocation_index_Input" | |
| OpName %main_inner "main_inner" | |
| OpName %tint_local_index "tint_local_index" | |
| OpName %m "m" | |
| OpName %idx "idx" | |
| OpName %main "main" | |
| OpDecorate %main_local_invocation_index_Input BuiltIn LocalInvocationIndex | |
| %uint = OpTypeInt 32 0 | |
| %uint_256 = OpConstant %uint 256 | |
| %_arr_uint_uint_256 = OpTypeArray %uint %uint_256 | |
| %_ptr_Workgroup__arr_uint_uint_256 = OpTypePointer Workgroup %_arr_uint_uint_256 | |
| %v = OpVariable %_ptr_Workgroup__arr_uint_uint_256 Workgroup | |
| %_ptr_Input_uint = OpTypePointer Input %uint | |
| %main_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input | |
| %void = OpTypeVoid | |
| %11 = OpTypeFunction %void %uint | |
| %uint_2 = OpConstant %uint 2 | |
| %uint_24840 = OpConstant %uint 24840 | |
| %uint_64 = OpConstant %uint 64 | |
| %bool = OpTypeBool | |
| %uint_0 = OpConstant %uint 0 | |
| %uint_8 = OpConstant %uint 8 | |
| %_ptr_Workgroup_uint = OpTypePointer Workgroup %uint | |
| %uint_3 = OpConstant %uint 3 | |
| %float = OpTypeFloat 32 | |
| %31 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_0 | |
| %uint_1 = OpConstant %uint 1 | |
| %_ptr_Function_uint = OpTypePointer Function %uint | |
| %uint_4 = OpConstant %uint 4 | |
| %uint_32 = OpConstant %uint 32 | |
| %54 = OpTypeFunction %void | |
| %main_inner = OpFunction %void None %11 | |
| %tint_local_index = OpFunctionParameter %uint | |
| %12 = OpLabel | |
| %idx = OpVariable %_ptr_Function_uint Function | |
| OpBranch %13 | |
| %13 = OpLabel | |
| OpStore %idx %tint_local_index | |
| OpBranch %16 | |
| %16 = OpLabel | |
| OpLoopMerge %17 %15 None | |
| OpBranch %14 | |
| %14 = OpLabel | |
| %42 = OpLoad %uint %idx None | |
| %43 = OpUGreaterThanEqual %bool %42 %uint_256 | |
| OpSelectionMerge %44 None | |
| OpBranchConditional %43 %45 %44 | |
| %45 = OpLabel | |
| OpBranch %17 | |
| %44 = OpLabel | |
| %46 = OpIMul %uint %42 %uint_4 | |
| %48 = OpUDiv %uint %46 %uint_4 | |
| %49 = OpAccessChain %_ptr_Workgroup_uint %v %48 | |
| OpStore %49 %uint_0 NonPrivatePointer | |
| OpBranch %15 | |
| %15 = OpLabel | |
| %50 = OpLoad %uint %idx None | |
| %51 = OpIAdd %uint %50 %uint_32 | |
| OpStore %idx %51 None | |
| OpBranch %16 | |
| %17 = OpLabel | |
| OpControlBarrier %uint_2 %uint_2 %uint_24840 | |
| %21 = OpULessThanEqual %bool %uint_64 %uint_256 | |
| %24 = OpSelect %uint %21 %uint_0 %uint_0 | |
| %26 = OpSelect %uint %21 %uint_8 %uint_8 | |
| %28 = OpAccessChain %_ptr_Workgroup_uint %v %24 | |
| %m = OpCooperativeMatrixLoadKHR %31 %28 %uint_1 %26 NonPrivatePointer | |
| %35 = OpULessThanEqual %bool %uint_64 %uint_256 | |
| %36 = OpSelect %uint %35 %uint_0 %uint_0 | |
| %37 = OpSelect %uint %35 %uint_8 %uint_8 | |
| %38 = OpAccessChain %_ptr_Workgroup_uint %v %36 | |
| OpCooperativeMatrixStoreKHR %38 %m %uint_0 %37 NonPrivatePointer | |
| OpReturn | |
| OpFunctionEnd | |
| %main = OpFunction %void None %54 | |
| %55 = OpLabel | |
| %56 = OpLoad %uint %main_local_invocation_index_Input None | |
| %57 = OpFunctionCall %void %main_inner %56 | |
| OpReturn | |
| OpFunctionEnd |