Skip to content

Instantly share code, notes, and snippets.

@MaikKlein
Created September 11, 2017 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaikKlein/17732fea9066e2051a6cdcef3ae80323 to your computer and use it in GitHub Desktop.
Save MaikKlein/17732fea9066e2051a6cdcef3ae80323 to your computer and use it in GitHub Desktop.
%test_f1_f1_ = OpFunction %float None %8
%f1 = OpFunctionParameter %_ptr_Function_float
%f2 = OpFunctionParameter %_ptr_Function_float
%12 = OpLabel
%13 = OpLoad %float %f1
%14 = OpLoad %float %f2
%15 = OpFAdd %float %13 %14
%15 = OpFunction %float None %14
%17 = OpFunctionParameter %_ptr_Function_float
%18 = OpFunctionParameter %_ptr_Function_float
%16 = OpLabel
%19 = OpVariable %_ptr_Function_float Function
%20 = OpVariable %_ptr_Function_float Function
%21 = OpVariable %_ptr_Function_float Function
%22 = OpVariable %_ptr_Function_float Function
%23 = OpVariable %_ptr_Function_float Function
%24 = OpLoad %float %17
OpStore %19 %24
%25 = OpLoad %float %18
OpStore %20 %25
%26 = OpLoad %float %19
OpStore %21 %26
%27 = OpLoad %float %20
OpStore %22 %27
%28 = OpLoad %float %21
%29 = OpLoad %float %22
%30 = OpFAdd %float %28 %29
OpStore %23 %30
%31 = OpLoad %float %23
OpReturnValue %31
OpFunctionEnd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment