blob: dd000b3afb29e0503221773e4077aec284825872 [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
%uint_2 = OpConstant %uint 2
%_ptr_Function_24 = OpTypePointer Function %24
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
%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
OpSelectionMerge %47 None
OpBranchConditional %45 %48 %47
%48 = OpLabel
%99 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%100 = OpAccessChain %_ptr_StorageBuffer_float %99 %uint_0
OpCooperativeMatrixStoreKHR %100 %32 %uint_0 %int_64 NonPrivatePointer
OpBranch %47
%47 = OpLabel
%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 = OpBitcast %uint %int_0
%54 = OpBitcast %uint %int_64
%55 = OpIMul %uint %54 %uint_7
%56 = OpIAdd %uint %53 %55
%57 = OpIAdd %uint %56 %uint_8
%58 = OpULessThanEqual %bool %57 %52
OpSelectionMerge %59 None
OpBranchConditional %58 %60 %59
%60 = OpLabel
%103 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%104 = OpAccessChain %_ptr_StorageBuffer_float %103 %uint_0
OpCooperativeMatrixStoreKHR %104 %50 %uint_0 %int_64 NonPrivatePointer
OpBranch %59
%59 = OpLabel
%61 = OpAccessChain %_ptr_Function_9 %m_nested_array_root %uint_1 %uint_2
%63 = OpLoad %9 %61 None
%64 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%65 = OpArrayLength %uint %1 0
%66 = OpBitcast %uint %int_0
%67 = OpBitcast %uint %int_64
%68 = OpIMul %uint %67 %uint_7
%69 = OpIAdd %uint %66 %68
%70 = OpIAdd %uint %69 %uint_8
%71 = OpULessThanEqual %bool %70 %65
OpSelectionMerge %72 None
OpBranchConditional %71 %73 %72
%73 = OpLabel
%106 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%107 = OpAccessChain %_ptr_StorageBuffer_float %106 %uint_0
OpCooperativeMatrixStoreKHR %107 %63 %uint_0 %int_64 NonPrivatePointer
OpBranch %72
%72 = OpLabel
%74 = OpAccessChain %_ptr_Function_9 %m_struct_root %uint_0
%75 = OpLoad %9 %74 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
OpSelectionMerge %84 None
OpBranchConditional %83 %85 %84
%85 = OpLabel
%109 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%110 = OpAccessChain %_ptr_StorageBuffer_float %109 %uint_0
OpCooperativeMatrixStoreKHR %110 %75 %uint_0 %int_64 NonPrivatePointer
OpBranch %84
%84 = OpLabel
%86 = OpAccessChain %_ptr_Function_24 %m_nested_struct_root %uint_0 %uint_1
%88 = OpLoad %24 %86 None
%89 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%90 = OpArrayLength %uint %1 0
%91 = OpBitcast %uint %int_0
%92 = OpBitcast %uint %int_64
%93 = OpIMul %uint %92 %uint_7
%94 = OpIAdd %uint %91 %93
%95 = OpIAdd %uint %94 %uint_8
%96 = OpULessThanEqual %bool %95 %90
OpSelectionMerge %97 None
OpBranchConditional %96 %98 %97
%98 = OpLabel
%112 = OpAccessChain %_ptr_StorageBuffer__runtimearr_float %1 %uint_0
%113 = OpAccessChain %_ptr_StorageBuffer_float %112 %uint_0
OpCooperativeMatrixStoreKHR %113 %88 %uint_0 %int_64 NonPrivatePointer
OpBranch %97
%97 = OpLabel
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