| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 117 |
| ; 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" |
| OpExecutionMode %main LocalSize 64 1 1 |
| OpMemberName %buffer_block_tint_explicit_layout 0 "inner" |
| OpName %buffer_block_tint_explicit_layout "buffer_block_tint_explicit_layout" |
| OpName %foo "foo" |
| OpName %m_root "m_root" |
| OpName %m_array_root "m_array_root" |
| OpName %m_nested_array_root "m_nested_array_root" |
| OpMemberName %S 0 "l" |
| OpMemberName %S 1 "r" |
| OpName %S "S" |
| OpName %m_struct_root "m_struct_root" |
| OpMemberName %S_Nested 0 "s" |
| OpName %S_Nested "S_Nested" |
| OpName %m_nested_struct_root "m_nested_struct_root" |
| OpName %main "main" |
| OpName %m "m" |
| OpName %m_array "m_array" |
| OpName %m_nested_array "m_nested_array" |
| OpName %m_struct "m_struct" |
| OpName %m_nested_struct "m_nested_struct" |
| OpDecorate %_runtimearr_float ArrayStride 4 |
| OpMemberDecorate %buffer_block_tint_explicit_layout 0 Offset 0 |
| OpDecorate %buffer_block_tint_explicit_layout Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| %float = OpTypeFloat 32 |
| %_runtimearr_float = OpTypeRuntimeArray %float |
| %buffer_block_tint_explicit_layout = OpTypeStruct %_runtimearr_float |
| %_ptr_StorageBuffer_buffer_block_tint_explicit_layout = OpTypePointer StorageBuffer %buffer_block_tint_explicit_layout |
| %1 = OpVariable %_ptr_StorageBuffer_buffer_block_tint_explicit_layout StorageBuffer |
| %void = OpTypeVoid |
| %uint = OpTypeInt 32 0 |
| %uint_3 = OpConstant %uint 3 |
| %uint_8 = OpConstant %uint 8 |
| %uint_0 = OpConstant %uint 0 |
| %9 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_0 |
| %_ptr_Function_9 = OpTypePointer Function %9 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_9_uint_4 = OpTypeArray %9 %uint_4 |
| %_ptr_Function__arr_9_uint_4 = OpTypePointer Function %_arr_9_uint_4 |
| %_arr__arr_9_uint_4_uint_4 = OpTypeArray %_arr_9_uint_4 %uint_4 |
| %_ptr_Function__arr__arr_9_uint_4_uint_4 = OpTypePointer Function %_arr__arr_9_uint_4_uint_4 |
| %uint_1 = OpConstant %uint 1 |
| %24 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_1 |
| %S = OpTypeStruct %9 %24 |
| %_ptr_Function_S = OpTypePointer Function %S |
| %S_Nested = OpTypeStruct %S |
| %_ptr_Function_S_Nested = OpTypePointer Function %S_Nested |
| %30 = OpTypeFunction %void %_ptr_Function_9 %_ptr_Function__arr_9_uint_4 %_ptr_Function__arr__arr_9_uint_4_uint_4 %_ptr_Function_S %_ptr_Function_S_Nested |
| %_ptr_StorageBuffer__runtimearr_float = OpTypePointer StorageBuffer %_runtimearr_float |
| %uint_64 = OpConstant %uint 64 |
| %uint_7 = OpConstant %uint 7 |
| %bool = OpTypeBool |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %uint_2 = OpConstant %uint 2 |
| %_ptr_Function_24 = OpTypePointer Function %24 |
| %104 = OpTypeFunction %void |
| %107 = OpConstantNull %9 |
| %109 = OpConstantNull %_arr_9_uint_4 |
| %111 = OpConstantNull %_arr__arr_9_uint_4_uint_4 |
| %113 = OpConstantNull %S |
| %115 = OpConstantNull %S_Nested |
| %foo = OpFunction %void None %30 |
| %m_root = OpFunctionParameter %_ptr_Function_9 |
| %m_array_root = OpFunctionParameter %_ptr_Function__arr_9_uint_4 |
| %m_nested_array_root = OpFunctionParameter %_ptr_Function__arr__arr_9_uint_4_uint_4 |
| %m_struct_root = OpFunctionParameter %_ptr_Function_S |
| %m_nested_struct_root = OpFunctionParameter %_ptr_Function_S_Nested |
| %31 = OpLabel |
| %32 = OpLoad %9 %m_root None |
| %33 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %35 = OpArrayLength %uint %1 0 |
| %36 = OpIMul %uint %uint_64 %uint_7 |
| %39 = OpIAdd %uint %uint_0 %36 |
| %40 = OpIAdd %uint %39 %uint_8 |
| %41 = OpULessThanEqual %bool %40 %35 |
| %43 = OpSelect %uint %41 %uint_0 %uint_0 |
| %44 = OpSelect %uint %41 %uint_64 %uint_8 |
| %45 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %46 = OpAccessChain %_ptr_StorageBuffer_float %45 %43 |
| OpCooperativeMatrixStoreKHR %46 %32 %uint_0 %44 NonPrivatePointer |
| %49 = OpAccessChain %_ptr_Function_9 %m_array_root %uint_0 |
| %50 = OpLoad %9 %49 None |
| %51 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %52 = OpArrayLength %uint %1 0 |
| %53 = OpIMul %uint %uint_64 %uint_7 |
| %54 = OpIAdd %uint %uint_0 %53 |
| %55 = OpIAdd %uint %54 %uint_8 |
| %56 = OpULessThanEqual %bool %55 %52 |
| %57 = OpSelect %uint %56 %uint_0 %uint_0 |
| %58 = OpSelect %uint %56 %uint_64 %uint_8 |
| %59 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %60 = OpAccessChain %_ptr_StorageBuffer_float %59 %57 |
| OpCooperativeMatrixStoreKHR %60 %50 %uint_0 %58 NonPrivatePointer |
| %62 = OpAccessChain %_ptr_Function_9 %m_nested_array_root %uint_1 %uint_2 |
| %64 = OpLoad %9 %62 None |
| %65 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %66 = OpArrayLength %uint %1 0 |
| %67 = OpIMul %uint %uint_64 %uint_7 |
| %68 = OpIAdd %uint %uint_0 %67 |
| %69 = OpIAdd %uint %68 %uint_8 |
| %70 = OpULessThanEqual %bool %69 %66 |
| %71 = OpSelect %uint %70 %uint_0 %uint_0 |
| %72 = OpSelect %uint %70 %uint_64 %uint_8 |
| %73 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %74 = OpAccessChain %_ptr_StorageBuffer_float %73 %71 |
| OpCooperativeMatrixStoreKHR %74 %64 %uint_0 %72 NonPrivatePointer |
| %76 = OpAccessChain %_ptr_Function_9 %m_struct_root %uint_0 |
| %77 = OpLoad %9 %76 None |
| %78 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %79 = OpArrayLength %uint %1 0 |
| %80 = OpIMul %uint %uint_64 %uint_7 |
| %81 = OpIAdd %uint %uint_0 %80 |
| %82 = OpIAdd %uint %81 %uint_8 |
| %83 = OpULessThanEqual %bool %82 %79 |
| %84 = OpSelect %uint %83 %uint_0 %uint_0 |
| %85 = OpSelect %uint %83 %uint_64 %uint_8 |
| %86 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %87 = OpAccessChain %_ptr_StorageBuffer_float %86 %84 |
| OpCooperativeMatrixStoreKHR %87 %77 %uint_0 %85 NonPrivatePointer |
| %89 = OpAccessChain %_ptr_Function_24 %m_nested_struct_root %uint_0 %uint_1 |
| %91 = OpLoad %24 %89 None |
| %92 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %93 = OpArrayLength %uint %1 0 |
| %94 = OpIMul %uint %uint_64 %uint_7 |
| %95 = OpIAdd %uint %uint_0 %94 |
| %96 = OpIAdd %uint %95 %uint_8 |
| %97 = OpULessThanEqual %bool %96 %93 |
| %98 = OpSelect %uint %97 %uint_0 %uint_0 |
| %99 = OpSelect %uint %97 %uint_64 %uint_8 |
| %100 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0 |
| %101 = OpAccessChain %_ptr_StorageBuffer_float %100 %98 |
| OpCooperativeMatrixStoreKHR %101 %91 %uint_0 %99 NonPrivatePointer |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %104 |
| %105 = OpLabel |
| %m = OpVariable %_ptr_Function_9 Function %107 |
| %m_array = OpVariable %_ptr_Function__arr_9_uint_4 Function %109 |
| %m_nested_array = OpVariable %_ptr_Function__arr__arr_9_uint_4_uint_4 Function %111 |
| %m_struct = OpVariable %_ptr_Function_S Function %113 |
| %m_nested_struct = OpVariable %_ptr_Function_S_Nested Function %115 |
| %116 = OpFunctionCall %void %foo %m %m_array %m_nested_array %m_struct %m_nested_struct |
| OpReturn |
| OpFunctionEnd |