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?
Thanks in advance,
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.