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? Thanks in advance, Michal.
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
Apparently Analagous Threads
- [LLVMdev] Dynamic Optimization Infrastructure
- [LLVMdev] [RFC] Splitting init.trampoline into init.trampoline and adjust.trampoline
- [LLVMdev] nested function's static link gets clobbered
- Re: nested vms and nested macvtaps
- [LLVMdev] nested function's static link gets clobbered