blob: 571fd2c43d39b679cbac150a262b6aa945af3d0e [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 120
; 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 %main "main"
OpName %m "m"
OpName %m_array "m_array"
OpName %m_nested_array "m_nested_array"
OpMemberName %S 0 "l"
OpMemberName %S 1 "r"
OpName %S "S"
OpName %m_struct "m_struct"
OpMemberName %S_Nested 0 "s"
OpName %S_Nested "S_Nested"
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
%8 = OpTypeFunction %void
%uint = OpTypeInt 32 0
%uint_3 = OpConstant %uint 3
%uint_8 = OpConstant %uint 8
%uint_0 = OpConstant %uint 0
%12 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_0
%_ptr_Function_12 = OpTypePointer Function %12
%17 = OpConstantNull %12
%uint_4 = OpConstant %uint 4
%_arr_12_uint_4 = OpTypeArray %12 %uint_4
%_ptr_Function__arr_12_uint_4 = OpTypePointer Function %_arr_12_uint_4
%22 = OpConstantNull %_arr_12_uint_4
%_arr__arr_12_uint_4_uint_4 = OpTypeArray %_arr_12_uint_4 %uint_4
%_ptr_Function__arr__arr_12_uint_4_uint_4 = OpTypePointer Function %_arr__arr_12_uint_4_uint_4
%26 = OpConstantNull %_arr__arr_12_uint_4_uint_4
%uint_1 = OpConstant %uint 1
%30 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_1
%S = OpTypeStruct %12 %30
%_ptr_Function_S = OpTypePointer Function %S
%32 = OpConstantNull %S
%S_Nested = OpTypeStruct %S
%_ptr_Function_S_Nested = OpTypePointer Function %S_Nested
%36 = OpConstantNull %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_30 = OpTypePointer Function %30
%main = OpFunction %void None %8
%9 = OpLabel
%m = OpVariable %_ptr_Function_12 Function %17
%m_array = OpVariable %_ptr_Function__arr_12_uint_4 Function %22
%m_nested_array = OpVariable %_ptr_Function__arr__arr_12_uint_4_uint_4 Function %26
%m_struct = OpVariable %_ptr_Function_S Function %32
%m_nested_struct = OpVariable %_ptr_Function_S_Nested Function %36
%37 = OpLoad %12 %m None
%38 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%40 = OpArrayLength %uint %1 0
%41 = OpBitcast %uint %int_0
%44 = OpBitcast %uint %int_64
%46 = OpIMul %uint %44 %uint_7
%48 = OpIAdd %uint %41 %46
%49 = OpIAdd %uint %48 %uint_8
%50 = OpULessThanEqual %bool %49 %40
%52 = OpSelect %uint %50 %41 %uint_0
%53 = OpSelect %uint %50 %44 %uint_8
%54 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%55 = OpAccessChain %_ptr_StorageBuffer_float %54 %52
OpCooperativeMatrixStoreKHR %55 %37 %uint_0 %53 NonPrivatePointer
%58 = OpAccessChain %_ptr_Function_12 %m_array %uint_0
%59 = OpLoad %12 %58 None
%60 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%61 = OpArrayLength %uint %1 0
%62 = OpBitcast %uint %int_0
%63 = OpBitcast %uint %int_64
%64 = OpIMul %uint %63 %uint_7
%65 = OpIAdd %uint %62 %64
%66 = OpIAdd %uint %65 %uint_8
%67 = OpULessThanEqual %bool %66 %61
%68 = OpSelect %uint %67 %62 %uint_0
%69 = OpSelect %uint %67 %63 %uint_8
%70 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%71 = OpAccessChain %_ptr_StorageBuffer_float %70 %68
OpCooperativeMatrixStoreKHR %71 %59 %uint_0 %69 NonPrivatePointer
%73 = OpAccessChain %_ptr_Function_12 %m_nested_array %uint_1 %uint_2
%75 = OpLoad %12 %73 None
%76 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%77 = OpArrayLength %uint %1 0
%78 = OpBitcast %uint %int_0
%79 = OpBitcast %uint %int_64
%80 = OpIMul %uint %79 %uint_7
%81 = OpIAdd %uint %78 %80
%82 = OpIAdd %uint %81 %uint_8
%83 = OpULessThanEqual %bool %82 %77
%84 = OpSelect %uint %83 %78 %uint_0
%85 = OpSelect %uint %83 %79 %uint_8
%86 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%87 = OpAccessChain %_ptr_StorageBuffer_float %86 %84
OpCooperativeMatrixStoreKHR %87 %75 %uint_0 %85 NonPrivatePointer
%89 = OpAccessChain %_ptr_Function_12 %m_struct %uint_0
%90 = OpLoad %12 %89 None
%91 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%92 = OpArrayLength %uint %1 0
%93 = OpBitcast %uint %int_0
%94 = OpBitcast %uint %int_64
%95 = OpIMul %uint %94 %uint_7
%96 = OpIAdd %uint %93 %95
%97 = OpIAdd %uint %96 %uint_8
%98 = OpULessThanEqual %bool %97 %92
%99 = OpSelect %uint %98 %93 %uint_0
%100 = OpSelect %uint %98 %94 %uint_8
%101 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%102 = OpAccessChain %_ptr_StorageBuffer_float %101 %99
OpCooperativeMatrixStoreKHR %102 %90 %uint_0 %100 NonPrivatePointer
%104 = OpAccessChain %_ptr_Function_30 %m_nested_struct %uint_0 %uint_1
%106 = OpLoad %30 %104 None
%107 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%108 = OpArrayLength %uint %1 0
%109 = OpBitcast %uint %int_0
%110 = OpBitcast %uint %int_64
%111 = OpIMul %uint %110 %uint_7
%112 = OpIAdd %uint %109 %111
%113 = OpIAdd %uint %112 %uint_8
%114 = OpULessThanEqual %bool %113 %108
%115 = OpSelect %uint %114 %109 %uint_0
%116 = OpSelect %uint %114 %110 %uint_8
%117 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%118 = OpAccessChain %_ptr_StorageBuffer_float %117 %115
OpCooperativeMatrixStoreKHR %118 %106 %uint_0 %116 NonPrivatePointer
OpReturn
OpFunctionEnd