blob: 6d86d8b084cc26069240cb41214f39af43cf53e7 [file] [log] [blame]
;
; main1
;
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 33
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main1 "main1" %main1_local_invocation_index_Input
OpExecutionMode %main1 LocalSize 1 1 1
OpName %a "a"
OpName %main1_local_invocation_index_Input "main1_local_invocation_index_Input"
OpName %uses_a "uses_a"
OpName %main1_inner "main1_inner"
OpName %tint_local_index "tint_local_index"
OpName %main1 "main1"
OpDecorate %main1_local_invocation_index_Input BuiltIn LocalInvocationIndex
%int = OpTypeInt 32 1
%_ptr_Workgroup_int = OpTypePointer Workgroup %int
%a = OpVariable %_ptr_Workgroup_int Workgroup
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%main1_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input
%void = OpTypeVoid
%9 = OpTypeFunction %void
%int_1 = OpConstant %int 1
%16 = OpTypeFunction %void %uint
%uint_1 = OpConstant %uint 1
%bool = OpTypeBool
%uint_2 = OpConstant %uint 2
%uint_264 = OpConstant %uint 264
%int_42 = OpConstant %int 42
%int_0 = OpConstant %int 0
%uses_a = OpFunction %void None %9
%10 = OpLabel
%11 = OpLoad %int %a None
%12 = OpIAdd %int %11 %int_1
OpStore %a %12 None
OpReturn
OpFunctionEnd
%main1_inner = OpFunction %void None %16
%tint_local_index = OpFunctionParameter %uint
%17 = OpLabel
%18 = OpULessThan %bool %tint_local_index %uint_1
OpSelectionMerge %21 None
OpBranchConditional %18 %22 %21
%22 = OpLabel
OpStore %a %int_0 None
OpBranch %21
%21 = OpLabel
OpControlBarrier %uint_2 %uint_2 %uint_264
OpStore %a %int_42 None
%27 = OpFunctionCall %void %uses_a
OpReturn
OpFunctionEnd
%main1 = OpFunction %void None %9
%30 = OpLabel
%31 = OpLoad %uint %main1_local_invocation_index_Input None
%32 = OpFunctionCall %void %main1_inner %31
OpReturn
OpFunctionEnd
;
; main2
;
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 33
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main2 "main2" %main2_local_invocation_index_Input
OpExecutionMode %main2 LocalSize 1 1 1
OpName %b "b"
OpName %main2_local_invocation_index_Input "main2_local_invocation_index_Input"
OpName %uses_b "uses_b"
OpName %main2_inner "main2_inner"
OpName %tint_local_index "tint_local_index"
OpName %main2 "main2"
OpDecorate %main2_local_invocation_index_Input BuiltIn LocalInvocationIndex
%int = OpTypeInt 32 1
%_ptr_Workgroup_int = OpTypePointer Workgroup %int
%b = OpVariable %_ptr_Workgroup_int Workgroup
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%main2_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input
%void = OpTypeVoid
%9 = OpTypeFunction %void
%int_2 = OpConstant %int 2
%16 = OpTypeFunction %void %uint
%uint_1 = OpConstant %uint 1
%bool = OpTypeBool
%uint_2 = OpConstant %uint 2
%uint_264 = OpConstant %uint 264
%int_7 = OpConstant %int 7
%int_0 = OpConstant %int 0
%uses_b = OpFunction %void None %9
%10 = OpLabel
%11 = OpLoad %int %b None
%12 = OpIMul %int %11 %int_2
OpStore %b %12 None
OpReturn
OpFunctionEnd
%main2_inner = OpFunction %void None %16
%tint_local_index = OpFunctionParameter %uint
%17 = OpLabel
%18 = OpULessThan %bool %tint_local_index %uint_1
OpSelectionMerge %21 None
OpBranchConditional %18 %22 %21
%22 = OpLabel
OpStore %b %int_0 None
OpBranch %21
%21 = OpLabel
OpControlBarrier %uint_2 %uint_2 %uint_264
OpStore %b %int_7 None
%27 = OpFunctionCall %void %uses_b
OpReturn
OpFunctionEnd
%main2 = OpFunction %void None %9
%30 = OpLabel
%31 = OpLoad %uint %main2_local_invocation_index_Input None
%32 = OpFunctionCall %void %main2_inner %31
OpReturn
OpFunctionEnd
;
; main3
;
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 50
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main3 "main3" %main3_local_invocation_index_Input
OpExecutionMode %main3 LocalSize 1 1 1
OpName %a "a"
OpName %b "b"
OpName %main3_local_invocation_index_Input "main3_local_invocation_index_Input"
OpName %uses_a "uses_a"
OpName %uses_b "uses_b"
OpName %uses_a_and_b "uses_a_and_b"
OpName %no_uses "no_uses"
OpName %outer "outer"
OpName %main3_inner "main3_inner"
OpName %tint_local_index "tint_local_index"
OpName %main3 "main3"
OpDecorate %main3_local_invocation_index_Input BuiltIn LocalInvocationIndex
%int = OpTypeInt 32 1
%_ptr_Workgroup_int = OpTypePointer Workgroup %int
%a = OpVariable %_ptr_Workgroup_int Workgroup
%b = OpVariable %_ptr_Workgroup_int Workgroup
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%main3_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input
%void = OpTypeVoid
%10 = OpTypeFunction %void
%int_1 = OpConstant %int 1
%int_2 = OpConstant %int 2
%int_0 = OpConstant %int 0
%34 = OpTypeFunction %void %uint
%uint_1 = OpConstant %uint 1
%bool = OpTypeBool
%uint_2 = OpConstant %uint 2
%uint_264 = OpConstant %uint 264
%uses_a = OpFunction %void None %10
%11 = OpLabel
%12 = OpLoad %int %a None
%13 = OpIAdd %int %12 %int_1
OpStore %a %13 None
OpReturn
OpFunctionEnd
%uses_b = OpFunction %void None %10
%16 = OpLabel
%17 = OpLoad %int %b None
%18 = OpIMul %int %17 %int_2
OpStore %b %18 None
OpReturn
OpFunctionEnd
%uses_a_and_b = OpFunction %void None %10
%21 = OpLabel
%22 = OpLoad %int %a None
OpStore %b %22 None
OpReturn
OpFunctionEnd
%no_uses = OpFunction %void None %10
%24 = OpLabel
OpReturn
OpFunctionEnd
%outer = OpFunction %void None %10
%26 = OpLabel
OpStore %a %int_0 None
%28 = OpFunctionCall %void %uses_a
%29 = OpFunctionCall %void %uses_a_and_b
%30 = OpFunctionCall %void %uses_b
%31 = OpFunctionCall %void %no_uses
OpReturn
OpFunctionEnd
%main3_inner = OpFunction %void None %34
%tint_local_index = OpFunctionParameter %uint
%35 = OpLabel
%36 = OpULessThan %bool %tint_local_index %uint_1
OpSelectionMerge %39 None
OpBranchConditional %36 %40 %39
%40 = OpLabel
OpStore %a %int_0 None
OpStore %b %int_0 None
OpBranch %39
%39 = OpLabel
OpControlBarrier %uint_2 %uint_2 %uint_264
%44 = OpFunctionCall %void %outer
%45 = OpFunctionCall %void %no_uses
OpReturn
OpFunctionEnd
%main3 = OpFunction %void None %10
%47 = OpLabel
%48 = OpLoad %uint %main3_local_invocation_index_Input None
%49 = OpFunctionCall %void %main3_inner %48
OpReturn
OpFunctionEnd
;
; main4
;
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 8
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main4 "main4"
OpExecutionMode %main4 LocalSize 1 1 1
OpName %no_uses "no_uses"
OpName %main4 "main4"
%void = OpTypeVoid
%3 = OpTypeFunction %void
%no_uses = OpFunction %void None %3
%4 = OpLabel
OpReturn
OpFunctionEnd
%main4 = OpFunction %void None %3
%6 = OpLabel
%7 = OpFunctionCall %void %no_uses
OpReturn
OpFunctionEnd