[LLVMdev] Explicitly Freeing Allocas
mcheva at cs.mcgill.ca
Thu Jun 18 08:12:18 PDT 2009
What kind of overhead does that have? Does it only restore the stack pointer
to what it was (what I want), or does it do more than that, and try to
restore values that were on the stack prior to save, etc?
Frits van Bommel wrote:
> Nyx wrote:
>> I would just like to ask if it's possible to explicitly free allocas.
>> is because I need to call functions that take structs of different sizes
>> input, (possibly inside of loops) and I would rather avoid a stack
> You can't explicitly free a specific alloca, but you can use the
> and llvm.stackrestore intrinsics to free all allocas performed after
> calling the
> stacksave intrinsic.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
View this message in context: http://www.nabble.com/Explicitly-Freeing-Allocas-tp24093351p24095072.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
More information about the llvm-dev