[LLVMdev] Nested functions implementation
Eli Friedman
eli.friedman at gmail.com
Mon May 4 10:39:45 PDT 2009
On Mon, May 4, 2009 at 10:31 AM, Michal <korgulec at gmail.com> wrote:
> Hi,
> I want to implement nested functions using llvm and I can't find much
> info on how to do this.
> Do I have to manually create frames, link them via static links and
> pass as an additional function
> argument or does llvm give some helper functions?
You have to do it by hand... the only help LLVM provides for nested
functions is the trampoline intrinsic
(http://llvm.org/docs/LangRef.html#int_trampoline), which lets you
implement taking the address of a nested function.
-Eli
More information about the llvm-dev
mailing list