blob: 0b2721828c54a5538d1dfc9817b442ae66bdd376 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 23
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %func "func"
OpName %value "value"
OpName %pointer_root "pointer_root"
OpName %x_9 "x_9"
OpName %main_1 "main_1"
OpName %i "i"
OpName %x_19 "x_19"
OpName %x_18 "x_18"
OpName %main "main"
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%6 = OpTypeFunction %int %int %_ptr_Function_int
%void = OpTypeVoid
%13 = OpTypeFunction %void
%int_0 = OpConstant %int 0
%int_123 = OpConstant %int 123
%func = OpFunction %int None %6
%value = OpFunctionParameter %int
%pointer_root = OpFunctionParameter %_ptr_Function_int
%7 = OpLabel
%8 = OpAccessChain %_ptr_Function_int %pointer_root
%x_9 = OpLoad %int %8 None
%10 = OpIAdd %int %value %x_9
OpReturnValue %10
OpFunctionEnd
%main_1 = OpFunction %void None %13
%14 = OpLabel
%i = OpVariable %_ptr_Function_int Function
OpStore %i %int_0
OpStore %i %int_123 None
%x_19 = OpLoad %int %i None
%x_18 = OpFunctionCall %int %func %x_19 %i
OpReturn
OpFunctionEnd
%main = OpFunction %void None %13
%21 = OpLabel
%22 = OpFunctionCall %void %main_1
OpReturn
OpFunctionEnd