blob: d3b6a57f30852a0dd8b7fd48c2bf6f06957bd8c0 [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 127
; 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 "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"
OpName %main "main"
OpName %m_0 "m"
OpName %m_array_0 "m_array"
OpName %m_nested_array_0 "m_nested_array"
OpName %m_struct_0 "m_struct"
OpName %m_nested_struct_0 "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
%8 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_0
%uint_4 = OpConstant %uint 4
%_arr_8_uint_4 = OpTypeArray %8 %uint_4
%_arr__arr_8_uint_4_uint_4 = OpTypeArray %_arr_8_uint_4 %uint_4
%uint_1 = OpConstant %uint 1
%20 = OpTypeCooperativeMatrixKHR %float %uint_3 %uint_8 %uint_8 %uint_1
%S = OpTypeStruct %8 %20
%S_Nested = OpTypeStruct %S
%25 = OpTypeFunction %void %8 %_arr_8_uint_4 %_arr__arr_8_uint_4_uint_4 %S %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
%104 = OpTypeFunction %void
%_ptr_Function_8 = OpTypePointer Function %8
%108 = OpConstantNull %8
%_ptr_Function__arr_8_uint_4 = OpTypePointer Function %_arr_8_uint_4
%111 = OpConstantNull %_arr_8_uint_4
%_ptr_Function__arr__arr_8_uint_4_uint_4 = OpTypePointer Function %_arr__arr_8_uint_4_uint_4
%114 = OpConstantNull %_arr__arr_8_uint_4_uint_4
%_ptr_Function_S = OpTypePointer Function %S
%117 = OpConstantNull %S
%_ptr_Function_S_Nested = OpTypePointer Function %S_Nested
%120 = OpConstantNull %S_Nested
%foo = OpFunction %void None %25
%m = OpFunctionParameter %8
%m_array = OpFunctionParameter %_arr_8_uint_4
%m_nested_array = OpFunctionParameter %_arr__arr_8_uint_4_uint_4
%m_struct = OpFunctionParameter %S
%m_nested_struct = OpFunctionParameter %S_Nested
%26 = OpLabel
%27 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%29 = OpArrayLength %uint %1 0
%30 = OpBitcast %uint %int_0
%33 = OpBitcast %uint %int_64
%35 = OpIMul %uint %33 %uint_7
%37 = OpIAdd %uint %30 %35
%38 = OpIAdd %uint %37 %uint_8
%39 = OpULessThanEqual %bool %38 %29
%41 = OpSelect %uint %39 %30 %uint_0
%42 = OpSelect %uint %39 %33 %uint_8
%43 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%44 = OpAccessChain %_ptr_StorageBuffer_float %43 %41
OpCooperativeMatrixStoreKHR %44 %m %uint_0 %42 NonPrivatePointer
%47 = OpCompositeExtract %8 %m_array 0
%48 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%49 = OpArrayLength %uint %1 0
%50 = OpBitcast %uint %int_0
%51 = OpBitcast %uint %int_64
%52 = OpIMul %uint %51 %uint_7
%53 = OpIAdd %uint %50 %52
%54 = OpIAdd %uint %53 %uint_8
%55 = OpULessThanEqual %bool %54 %49
%56 = OpSelect %uint %55 %50 %uint_0
%57 = OpSelect %uint %55 %51 %uint_8
%58 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%59 = OpAccessChain %_ptr_StorageBuffer_float %58 %56
OpCooperativeMatrixStoreKHR %59 %47 %uint_0 %57 NonPrivatePointer
%61 = OpCompositeExtract %8 %m_nested_array 1 2
%62 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%63 = OpArrayLength %uint %1 0
%64 = OpBitcast %uint %int_0
%65 = OpBitcast %uint %int_64
%66 = OpIMul %uint %65 %uint_7
%67 = OpIAdd %uint %64 %66
%68 = OpIAdd %uint %67 %uint_8
%69 = OpULessThanEqual %bool %68 %63
%70 = OpSelect %uint %69 %64 %uint_0
%71 = OpSelect %uint %69 %65 %uint_8
%72 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%73 = OpAccessChain %_ptr_StorageBuffer_float %72 %70
OpCooperativeMatrixStoreKHR %73 %61 %uint_0 %71 NonPrivatePointer
%75 = OpCompositeExtract %8 %m_struct 0
%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 = OpCompositeExtract %20 %m_nested_struct 0 1
%90 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%91 = OpArrayLength %uint %1 0
%92 = OpBitcast %uint %int_0
%93 = OpBitcast %uint %int_64
%94 = OpIMul %uint %93 %uint_7
%95 = OpIAdd %uint %92 %94
%96 = OpIAdd %uint %95 %uint_8
%97 = OpULessThanEqual %bool %96 %91
%98 = OpSelect %uint %97 %92 %uint_0
%99 = OpSelect %uint %97 %93 %uint_8
%100 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%101 = OpAccessChain %_ptr_StorageBuffer_float %100 %98
OpCooperativeMatrixStoreKHR %101 %89 %uint_0 %99 NonPrivatePointer
OpReturn
OpFunctionEnd
%main = OpFunction %void None %104
%105 = OpLabel
%m_0 = OpVariable %_ptr_Function_8 Function %108
%m_array_0 = OpVariable %_ptr_Function__arr_8_uint_4 Function %111
%m_nested_array_0 = OpVariable %_ptr_Function__arr__arr_8_uint_4_uint_4 Function %114
%m_struct_0 = OpVariable %_ptr_Function_S Function %117
%m_nested_struct_0 = OpVariable %_ptr_Function_S_Nested Function %120
%121 = OpLoad %8 %m_0 None
%122 = OpLoad %_arr_8_uint_4 %m_array_0 None
%123 = OpLoad %_arr__arr_8_uint_4_uint_4 %m_nested_array_0 None
%124 = OpLoad %S %m_struct_0 None
%125 = OpLoad %S_Nested %m_nested_struct_0 None
%126 = OpFunctionCall %void %foo %121 %122 %123 %124 %125
OpReturn
OpFunctionEnd