Nested functions implementation

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
(, which lets you
implement taking the address of a nested function.