blob: 825a5a0bc0e93c36bd6c2ffcc5cdbb51573e7430 [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 129
; 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
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%int_64 = OpConstant %int 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
%116 = OpTypeFunction %void
%119 = OpConstantNull %9
%121 = OpConstantNull %_arr_9_uint_4
%123 = OpConstantNull %_arr__arr_9_uint_4_uint_4
%125 = OpConstantNull %S
%127 = 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 = OpBitcast %uint %int_0
%39 = OpBitcast %uint %int_64
%41 = OpIMul %uint %39 %uint_7
%43 = OpIAdd %uint %36 %41
%44 = OpIAdd %uint %43 %uint_8
%45 = OpULessThanEqual %bool %44 %35
%47 = OpSelect %uint %45 %36 %uint_0
%48 = OpSelect %uint %45 %39 %uint_8
%49 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%50 = OpAccessChain %_ptr_StorageBuffer_float %49 %47
OpCooperativeMatrixStoreKHR %50 %32 %uint_0 %48 NonPrivatePointer
%53 = OpAccessChain %_ptr_Function_9 %m_array_root %uint_0
%54 = OpLoad %9 %53 None
%55 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%56 = OpArrayLength %uint %1 0
%57 = OpBitcast %uint %int_0
%58 = OpBitcast %uint %int_64
%59 = OpIMul %uint %58 %uint_7
%60 = OpIAdd %uint %57 %59
%61 = OpIAdd %uint %60 %uint_8
%62 = OpULessThanEqual %bool %61 %56
%63 = OpSelect %uint %62 %57 %uint_0
%64 = OpSelect %uint %62 %58 %uint_8
%65 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%66 = OpAccessChain %_ptr_StorageBuffer_float %65 %63
OpCooperativeMatrixStoreKHR %66 %54 %uint_0 %64 NonPrivatePointer
%68 = OpAccessChain %_ptr_Function_9 %m_nested_array_root %uint_1 %uint_2
%70 = OpLoad %9 %68 None
%71 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%72 = OpArrayLength %uint %1 0
%73 = OpBitcast %uint %int_0
%74 = OpBitcast %uint %int_64
%75 = OpIMul %uint %74 %uint_7
%76 = OpIAdd %uint %73 %75
%77 = OpIAdd %uint %76 %uint_8
%78 = OpULessThanEqual %bool %77 %72
%79 = OpSelect %uint %78 %73 %uint_0
%80 = OpSelect %uint %78 %74 %uint_8
%81 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%82 = OpAccessChain %_ptr_StorageBuffer_float %81 %79
OpCooperativeMatrixStoreKHR %82 %70 %uint_0 %80 NonPrivatePointer
%84 = OpAccessChain %_ptr_Function_9 %m_struct_root %uint_0
%85 = OpLoad %9 %84 None
%86 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%87 = OpArrayLength %uint %1 0
%88 = OpBitcast %uint %int_0
%89 = OpBitcast %uint %int_64
%90 = OpIMul %uint %89 %uint_7
%91 = OpIAdd %uint %88 %90
%92 = OpIAdd %uint %91 %uint_8
%93 = OpULessThanEqual %bool %92 %87
%94 = OpSelect %uint %93 %88 %uint_0
%95 = OpSelect %uint %93 %89 %uint_8
%96 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%97 = OpAccessChain %_ptr_StorageBuffer_float %96 %94
OpCooperativeMatrixStoreKHR %97 %85 %uint_0 %95 NonPrivatePointer
%99 = OpAccessChain %_ptr_Function_24 %m_nested_struct_root %uint_0 %uint_1
%101 = OpLoad %24 %99 None
%102 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%103 = OpArrayLength %uint %1 0
%104 = OpBitcast %uint %int_0
%105 = OpBitcast %uint %int_64
%106 = OpIMul %uint %105 %uint_7
%107 = OpIAdd %uint %104 %106
%108 = OpIAdd %uint %107 %uint_8
%109 = OpULessThanEqual %bool %108 %103
%110 = OpSelect %uint %109 %104 %uint_0
%111 = OpSelect %uint %109 %105 %uint_8
%112 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%113 = OpAccessChain %_ptr_StorageBuffer_float %112 %110
OpCooperativeMatrixStoreKHR %113 %101 %uint_0 %111 NonPrivatePointer
OpReturn
OpFunctionEnd
%main = OpFunction %void None %116
%117 = OpLabel
%m = OpVariable %_ptr_Function_9 Function %119
%m_array = OpVariable %_ptr_Function__arr_9_uint_4 Function %121
%m_nested_array = OpVariable %_ptr_Function__arr__arr_9_uint_4_uint_4 Function %123
%m_struct = OpVariable %_ptr_Function_S Function %125
%m_nested_struct = OpVariable %_ptr_Function_S_Nested Function %127
%128 = OpFunctionCall %void %foo %m %m_array %m_nested_array %m_struct %m_nested_struct
OpReturn
OpFunctionEnd