| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 46 |
| ; 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 %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_5671e2 "subgroupMatrixStore_5671e2" |
| OpName %compute_main_inner "compute_main_inner" |
| OpName %tint_local_index "tint_local_index" |
| OpName %compute_main "compute_main" |
| OpDecorate %_arr_int_uint_64 ArrayStride 4 |
| OpDecorate %compute_main_local_invocation_index_Input BuiltIn LocalInvocationIndex |
| %int = OpTypeInt 32 1 |
| %uint = OpTypeInt 32 0 |
| %uint_64 = OpConstant %uint 64 |
| %_arr_int_uint_64 = OpTypeArray %int %uint_64 |
| %_ptr_Workgroup__arr_int_uint_64 = OpTypePointer Workgroup %_arr_int_uint_64 |
| %arg_0 = OpVariable %_ptr_Workgroup__arr_int_uint_64 Workgroup |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %compute_main_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input |
| %void = OpTypeVoid |
| %11 = OpTypeFunction %void |
| %uint_3 = OpConstant %uint 3 |
| %uint_8 = OpConstant %uint 8 |
| %uint_1 = OpConstant %uint 1 |
| %14 = OpTypeCooperativeMatrixKHR %int %uint_3 %uint_8 %uint_8 %uint_1 |
| %13 = OpConstantNull %14 |
| %_ptr_Workgroup_int = OpTypePointer Workgroup %int |
| %23 = OpTypeFunction %void %uint |
| %bool = OpTypeBool |
| %int_0 = OpConstant %int 0 |
| %uint_2 = OpConstant %uint 2 |
| %uint_24840 = OpConstant %uint 24840 |
| %subgroupMatrixStore_5671e2 = OpFunction %void None %11 |
| %12 = OpLabel |
| %18 = OpAccessChain %_ptr_Workgroup_int %arg_0 %uint_1 |
| OpCooperativeMatrixStoreKHR %18 %13 %uint_1 %uint_1 NonPrivatePointer |
| OpReturn |
| OpFunctionEnd |
| %compute_main_inner = OpFunction %void None %23 |
| %tint_local_index = OpFunctionParameter %uint |
| %24 = OpLabel |
| OpBranch %25 |
| %25 = OpLabel |
| OpBranch %28 |
| %28 = OpLabel |
| %30 = OpPhi %uint %tint_local_index %25 %31 %27 |
| OpLoopMerge %29 %27 None |
| OpBranch %26 |
| %26 = OpLabel |
| %32 = OpUGreaterThanEqual %bool %30 %uint_64 |
| OpSelectionMerge %34 None |
| OpBranchConditional %32 %35 %34 |
| %35 = OpLabel |
| OpBranch %29 |
| %34 = OpLabel |
| %36 = OpAccessChain %_ptr_Workgroup_int %arg_0 %30 |
| OpStore %36 %int_0 NonPrivatePointer |
| OpBranch %27 |
| %27 = OpLabel |
| %31 = OpIAdd %uint %30 %uint_1 |
| OpBranch %28 |
| %29 = OpLabel |
| OpControlBarrier %uint_2 %uint_2 %uint_24840 |
| %41 = OpFunctionCall %void %subgroupMatrixStore_5671e2 |
| OpReturn |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %11 |
| %43 = OpLabel |
| %44 = OpLoad %uint %compute_main_local_invocation_index_Input None |
| %45 = OpFunctionCall %void %compute_main_inner %44 |
| OpReturn |
| OpFunctionEnd |