[LLVMdev] Stack Management in LLVM

Eli Friedman eli.friedman at gmail.com
Thu Jul 16 21:42:23 PDT 2009

On Thu, Jul 16, 2009 at 9:29 PM, Joshua
Moore-Oliva<llvm-dev at chatgris.com> wrote:
> To the list of modifications I need to be able to perform, add
> the ability to specify the ordering of local variables in the stack

If you need specific locations for everything you're allocating on the
stack, you should probably just use a continuation-passing style like
the one mentioned in
http://nondot.org/sabre/LLVMNotes/ExplicitlyManagedStackFrames.txt ;
LLVM won't preserve the values of variables allocated with alloca
whose address isn't taken.


More information about the llvm-dev mailing list