| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 66 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint GLCompute %main "main" | |
| OpExecutionMode %main LocalSize 1 1 1 | |
| OpName %deref_const "deref_const" | |
| OpName %a "a" | |
| OpName %a "p" | |
| OpName %b "b" | |
| OpName %no_deref_const "no_deref_const" | |
| OpName %a_0 "a" | |
| OpName %a_0 "p" | |
| OpName %b_0 "b" | |
| OpName %deref_let "deref_let" | |
| OpName %a_1 "a" | |
| OpName %a_1 "p" | |
| OpName %i "i" | |
| OpName %b_1 "b" | |
| OpName %no_deref_let "no_deref_let" | |
| OpName %a_2 "a" | |
| OpName %a_2 "p" | |
| OpName %i "i" | |
| OpName %b_2 "b" | |
| OpName %deref_var "deref_var" | |
| OpName %a_3 "a" | |
| OpName %a_3 "p" | |
| OpName %i_0 "i" | |
| OpName %b_3 "b" | |
| OpName %no_deref_var "no_deref_var" | |
| OpName %a_4 "a" | |
| OpName %a_4 "p" | |
| OpName %i_1 "i" | |
| OpName %b_4 "b" | |
| OpName %main "main" | |
| OpDecorate %_arr_int_uint_10 ArrayStride 4 | |
| %void = OpTypeVoid | |
| %3 = OpTypeFunction %void | |
| %int = OpTypeInt 32 1 | |
| %uint = OpTypeInt 32 0 | |
| %uint_10 = OpConstant %uint 10 | |
| %_arr_int_uint_10 = OpTypeArray %int %uint_10 | |
| %_ptr_Function__arr_int_uint_10 = OpTypePointer Function %_arr_int_uint_10 | |
| %11 = OpConstantNull %_arr_int_uint_10 | |
| %_ptr_Function_int = OpTypePointer Function %int | |
| %i = OpConstant %int 0 | |
| %int_42 = OpConstant %int 42 | |
| %deref_const = OpFunction %void None %3 | |
| %4 = OpLabel | |
| %a = OpVariable %_ptr_Function__arr_int_uint_10 Function %11 | |
| %b = OpVariable %_ptr_Function_int Function | |
| %12 = OpAccessChain %_ptr_Function_int %a %i | |
| %15 = OpLoad %int %12 None | |
| OpStore %b %15 | |
| %17 = OpAccessChain %_ptr_Function_int %a %i | |
| OpStore %17 %int_42 None | |
| OpReturn | |
| OpFunctionEnd | |
| %no_deref_const = OpFunction %void None %3 | |
| %20 = OpLabel | |
| %a_0 = OpVariable %_ptr_Function__arr_int_uint_10 Function %11 | |
| %b_0 = OpVariable %_ptr_Function_int Function | |
| %22 = OpAccessChain %_ptr_Function_int %a_0 %i | |
| %23 = OpLoad %int %22 None | |
| OpStore %b_0 %23 | |
| %25 = OpAccessChain %_ptr_Function_int %a_0 %i | |
| OpStore %25 %int_42 None | |
| OpReturn | |
| OpFunctionEnd | |
| %deref_let = OpFunction %void None %3 | |
| %27 = OpLabel | |
| %a_1 = OpVariable %_ptr_Function__arr_int_uint_10 Function %11 | |
| %b_1 = OpVariable %_ptr_Function_int Function | |
| %29 = OpAccessChain %_ptr_Function_int %a_1 %i | |
| %30 = OpLoad %int %29 None | |
| OpStore %b_1 %30 | |
| %32 = OpAccessChain %_ptr_Function_int %a_1 %i | |
| OpStore %32 %int_42 None | |
| OpReturn | |
| OpFunctionEnd | |
| %no_deref_let = OpFunction %void None %3 | |
| %34 = OpLabel | |
| %a_2 = OpVariable %_ptr_Function__arr_int_uint_10 Function %11 | |
| %b_2 = OpVariable %_ptr_Function_int Function | |
| %36 = OpAccessChain %_ptr_Function_int %a_2 %i | |
| %37 = OpLoad %int %36 None | |
| OpStore %b_2 %37 | |
| %39 = OpAccessChain %_ptr_Function_int %a_2 %i | |
| OpStore %39 %int_42 None | |
| OpReturn | |
| OpFunctionEnd | |
| %deref_var = OpFunction %void None %3 | |
| %41 = OpLabel | |
| %a_3 = OpVariable %_ptr_Function__arr_int_uint_10 Function %11 | |
| %i_0 = OpVariable %_ptr_Function_int Function | |
| %b_3 = OpVariable %_ptr_Function_int Function | |
| OpStore %i_0 %i | |
| %44 = OpLoad %int %i_0 None | |
| %45 = OpAccessChain %_ptr_Function_int %a_3 %44 | |
| %46 = OpLoad %int %45 None | |
| OpStore %b_3 %46 | |
| %48 = OpAccessChain %_ptr_Function_int %a_3 %i | |
| OpStore %48 %int_42 None | |
| OpReturn | |
| OpFunctionEnd | |
| %no_deref_var = OpFunction %void None %3 | |
| %50 = OpLabel | |
| %a_4 = OpVariable %_ptr_Function__arr_int_uint_10 Function %11 | |
| %i_1 = OpVariable %_ptr_Function_int Function | |
| %b_4 = OpVariable %_ptr_Function_int Function | |
| OpStore %i_1 %i | |
| %53 = OpLoad %int %i_1 None | |
| %54 = OpAccessChain %_ptr_Function_int %a_4 %53 | |
| %55 = OpLoad %int %54 None | |
| OpStore %b_4 %55 | |
| %57 = OpAccessChain %_ptr_Function_int %a_4 %i | |
| OpStore %57 %int_42 None | |
| OpReturn | |
| OpFunctionEnd | |
| %main = OpFunction %void None %3 | |
| %59 = OpLabel | |
| %60 = OpFunctionCall %void %deref_const | |
| %61 = OpFunctionCall %void %no_deref_const | |
| %62 = OpFunctionCall %void %deref_let | |
| %63 = OpFunctionCall %void %no_deref_let | |
| %64 = OpFunctionCall %void %deref_var | |
| %65 = OpFunctionCall %void %no_deref_var | |
| OpReturn | |
| OpFunctionEnd |