gauravssnl / unladen-swallow

Automatically exported from code.google.com/p/unladen-swallow
Other
0 stars 0 forks source link

Keep track of LLVM's tail call support #58

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Right now, LLVM only emits tail calls for calls between fastcc functions
that obey certain other conditions:
http://llvm.org/docs/CodeGenerator.html#tailcallopt. gcc emits tail calls
for certain kinds of functions that obey the C ABI, so it should be
possible for LLVM to eventually do the same. We'd like to emit these for at
least jumping back from jitted code to the interpreter, and probably other
places.

For now, we'll emit the "tail" marker on the call but accept that the code
generator won't optimize it.

Original issue reported on code.google.com by jyass...@gmail.com on 12 Jun 2009 at 9:42