<div dir="ltr">Hello to all,<br><br>My situation is similar to this question over here: <a href="http://lists.llvm.org/pipermail/llvm-dev/2010-June/032684.html">http://lists.llvm.org/pipermail/llvm-dev/2010-June/032684.html</a>. Specifically, I would like to support a front-end that compiles from a language with nested, probably mutually-recursive to LLVM IR. Before reading the above thread, I was thinking about finding fixed points of free variables, etc, but the static links seem to avoid all the fuss. However, I have two further questions regarding that technique:<br><br>1) I am not very sure I have grasped the way the author suggests augmenting the AST. I have the following thought problems: how would I augment a Function Call to indicate the changes that arise from the nesting? Only pass as an extra first argument the static link structure of the parent? Is this enough, or something more is needed?<br><br>2) What kind of combination of LLVM passes (and in which turn, since this seems to be important in some aspects) can I apply in order to get rid of all those "getelementptr" instructions, and LLVM can replace arguments with the correct ones, similar to the analysis I was intending to do, with finding fixed points, etc? Or isn't that possible at all, or only to some extent?<br><br>Thanks,<br>Jason</div>