[LLVMdev] opt -std-compile-opts breaks tail calls

Jon Harrop jon at ffconsultancy.com
Fri Nov 13 03:34:28 PST 2009


On Friday 13 November 2009 09:40:02 OvermindDL1 wrote:
> Just to make sure, but if a tail call function returns a value, can
> you not just return that value directly by your function and have tail
> calls still work?

Yes, that is correct. You may like to look at the implementation in HLVM which 
handles struct return types as well:

  http://hlvm.forge.ocamlcore.org/

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e



More information about the llvm-dev mailing list