| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 49 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability VulkanMemoryModel |
| OpCapability VulkanMemoryModelDeviceScope |
| OpCapability CooperativeMatrixKHR |
| OpCapability Int8 |
| OpExtension "SPV_KHR_vulkan_memory_model" |
| OpExtension "SPV_KHR_cooperative_matrix" |
| OpMemoryModel Logical Vulkan |
| OpEntryPoint GLCompute %compute_main "compute_main" %compute_main_local_invocation_index_Input |
| OpExecutionMode %compute_main LocalSize 1 1 1 |
| OpName %arg_0 "arg_0" |
| OpName %compute_main_local_invocation_index_Input "compute_main_local_invocation_index_Input" |
| OpName %subgroupMatrixStore_ca6fe7 "subgroupMatrixStore_ca6fe7" |
| OpName %compute_main_inner "compute_main_inner" |
| OpName %tint_local_index "tint_local_index" |
| OpName %compute_main "compute_main" |
| OpDecorate %compute_main_local_invocation_index_Input BuiltIn LocalInvocationIndex |
| %uint = OpTypeInt 32 0 |
| %uint_1024 = OpConstant %uint 1024 |
| %_arr_uint_uint_1024 = OpTypeArray %uint %uint_1024 |
| %_ptr_Workgroup__arr_uint_uint_1024 = OpTypePointer Workgroup %_arr_uint_uint_1024 |
| %arg_0 = OpVariable %_ptr_Workgroup__arr_uint_uint_1024 Workgroup |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %compute_main_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input |
| %void = OpTypeVoid |
| %10 = OpTypeFunction %void |
| %uint_3 = OpConstant %uint 3 |
| %uint_8 = OpConstant %uint 8 |
| %uchar = OpTypeInt 8 0 |
| %uint_0 = OpConstant %uint 0 |
| %13 = OpTypeCooperativeMatrixKHR %uchar %uint_3 %uint_8 %uint_8 %uint_0 |
| %12 = OpConstantNull %13 |
| %uint_4 = OpConstant %uint 4 |
| %uint_1 = OpConstant %uint 1 |
| %_ptr_Workgroup_uint = OpTypePointer Workgroup %uint |
| %27 = OpTypeFunction %void %uint |
| %uint_2 = OpConstant %uint 2 |
| %uint_24840 = OpConstant %uint 24840 |
| %bool = OpTypeBool |
| %subgroupMatrixStore_ca6fe7 = OpFunction %void None %10 |
| %11 = OpLabel |
| %18 = OpUDiv %uint %uint_8 %uint_4 |
| %20 = OpUDiv %uint %uint_1 %uint_4 |
| %22 = OpAccessChain %_ptr_Workgroup_uint %arg_0 %20 |
| OpCooperativeMatrixStoreKHR %22 %12 %uint_1 %18 NonPrivatePointer |
| OpReturn |
| OpFunctionEnd |
| %compute_main_inner = OpFunction %void None %27 |
| %tint_local_index = OpFunctionParameter %uint |
| %28 = OpLabel |
| OpBranch %29 |
| %29 = OpLabel |
| OpBranch %32 |
| %32 = OpLabel |
| %34 = OpPhi %uint %tint_local_index %29 %35 %31 |
| OpLoopMerge %33 %31 None |
| OpBranch %30 |
| %30 = OpLabel |
| %40 = OpUGreaterThanEqual %bool %34 %uint_1024 |
| OpSelectionMerge %42 None |
| OpBranchConditional %40 %43 %42 |
| %43 = OpLabel |
| OpBranch %33 |
| %42 = OpLabel |
| %44 = OpAccessChain %_ptr_Workgroup_uint %arg_0 %34 |
| OpStore %44 %uint_0 NonPrivatePointer |
| OpBranch %31 |
| %31 = OpLabel |
| %35 = OpIAdd %uint %34 %uint_1 |
| OpBranch %32 |
| %33 = OpLabel |
| OpControlBarrier %uint_2 %uint_2 %uint_24840 |
| %39 = OpFunctionCall %void %subgroupMatrixStore_ca6fe7 |
| OpReturn |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %10 |
| %46 = OpLabel |
| %47 = OpLoad %uint %compute_main_local_invocation_index_Input None |
| %48 = OpFunctionCall %void %compute_main_inner %47 |
| OpReturn |
| OpFunctionEnd |