search for: grantpar

Displaying 3 results from an estimated 3 matches for "grantpar".

Did you mean: grandpar
2004 Nov 22
1
[LLVMdev] Nested functions
...ogram AST have set of references to expressions where it used. All expressions know what function body contain it. All functions know what function contain it (if nested). I iterate by nested functions in deep and cache information about used declarations from parent function: args, locals, used grantparent declarations. Declaration used iff declaration used in code current processed nested function or in it nested function bodies or in it parent(grantparents) nested functions called from (it or it nested functions). Collect this information for non-nested function and all it nested functions i...
2004 Nov 22
2
[LLVMdev] Nested functions
> As an optimization for shallow nested functions (e.g., 3 levels or less), > it seems to me you could just avoid the stack walking entirely and add > $k-1$ arguments to each function at level $k$, i.e., at most 2 arguments > in all. This may even be an easy first implementation. I use this method with filtering unused in nested function args and local vars in my YAFL frontend
2004 Nov 22
0
[LLVMdev] Nested functions
On Nov 22, 2004, at 12:34 PM, Vladimir Merzliakov wrote: >> As an optimization for shallow nested functions (e.g., 3 levels or >> less), it seems to me you could just avoid the stack walking entirely >> and add $k-1$ arguments to each function at level $k$, i.e., at most >> 2 arguments in all. This may even be an easy first implementation. > > I use this method