blob: c2e8fea0435c3ab710c078305af45a17a3bf76db [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 24
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %unused_entry_point "unused_entry_point"
OpName %c "c"
OpName %a "a"
OpName %b "b"
OpName %b_1 "b_1"
%void = OpTypeVoid
%1 = OpTypeFunction %void
%int = OpTypeInt 32 1
%5 = OpTypeFunction %int
%int_1 = OpConstant %int 1
%_ptr_Function_int = OpTypePointer Function %int
%12 = OpConstantNull %int
%int_2 = OpConstant %int 2
%unused_entry_point = OpFunction %void None %1
%4 = OpLabel
OpReturn
OpFunctionEnd
%c = OpFunction %int None %5
%8 = OpLabel
%a = OpVariable %_ptr_Function_int Function %12
OpStore %a %int_1
%13 = OpLoad %int %a
%15 = OpIAdd %int %13 %int_2
OpStore %a %15
%16 = OpLoad %int %a
OpReturnValue %16
OpFunctionEnd
%b = OpFunction %void None %1
%18 = OpLabel
%b_1 = OpVariable %_ptr_Function_int Function %12
%19 = OpFunctionCall %int %c
OpStore %b_1 %19
%21 = OpLoad %int %b_1
%22 = OpFunctionCall %int %c
%23 = OpIAdd %int %21 %22
OpStore %b_1 %23
OpReturn
OpFunctionEnd