| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 47 |
| ; 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_dc92cf "subgroupMatrixStore_dc92cf" |
| OpName %compute_main_inner "compute_main_inner" |
| OpName %tint_local_index "tint_local_index" |
| OpName %compute_main "compute_main" |
| OpDecorate %_arr_float_uint_64 ArrayStride 4 |
| OpDecorate %compute_main_local_invocation_index_Input BuiltIn LocalInvocationIndex |
| %float = OpTypeFloat 32 |
| %uint = OpTypeInt 32 0 |
| %uint_64 = OpConstant %uint 64 |
| %_arr_float_uint_64 = OpTypeArray %float %uint_64 |
| %_ptr_Workgroup__arr_float_uint_64 = OpTypePointer Workgroup %_arr_float_uint_64 |
| %arg_0 = OpVariable %_ptr_Workgroup__arr_float_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_0 = OpConstant %uint 0 |
| %14 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_0 |
| %13 = OpConstantNull %14 |
| %_ptr_Workgroup_float = OpTypePointer Workgroup %float |
| %uint_1 = OpConstant %uint 1 |
| %24 = OpTypeFunction %void %uint |
| %bool = OpTypeBool |
| %float_0 = OpConstant %float 0 |
| %uint_2 = OpConstant %uint 2 |
| %uint_24840 = OpConstant %uint 24840 |
| %subgroupMatrixStore_dc92cf = OpFunction %void None %11 |
| %12 = OpLabel |
| %18 = OpAccessChain %_ptr_Workgroup_float %arg_0 %uint_1 |
| OpCooperativeMatrixStoreKHR %18 %13 %uint_1 %uint_1 NonPrivatePointer |
| OpReturn |
| OpFunctionEnd |
| %compute_main_inner = OpFunction %void None %24 |
| %tint_local_index = OpFunctionParameter %uint |
| %25 = OpLabel |
| OpBranch %26 |
| %26 = OpLabel |
| OpBranch %29 |
| %29 = OpLabel |
| %31 = OpPhi %uint %tint_local_index %26 %32 %28 |
| OpLoopMerge %30 %28 None |
| OpBranch %27 |
| %27 = OpLabel |
| %33 = OpUGreaterThanEqual %bool %31 %uint_64 |
| OpSelectionMerge %35 None |
| OpBranchConditional %33 %36 %35 |
| %36 = OpLabel |
| OpBranch %30 |
| %35 = OpLabel |
| %37 = OpAccessChain %_ptr_Workgroup_float %arg_0 %31 |
| OpStore %37 %float_0 NonPrivatePointer |
| OpBranch %28 |
| %28 = OpLabel |
| %32 = OpIAdd %uint %31 %uint_1 |
| OpBranch %29 |
| %30 = OpLabel |
| OpControlBarrier %uint_2 %uint_2 %uint_24840 |
| %42 = OpFunctionCall %void %subgroupMatrixStore_dc92cf |
| OpReturn |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %11 |
| %44 = OpLabel |
| %45 = OpLoad %uint %compute_main_local_invocation_index_Input None |
| %46 = OpFunctionCall %void %compute_main_inner %45 |
| OpReturn |
| OpFunctionEnd |