search for: int_stacksave

Displaying 5 results from an estimated 5 matches for "int_stacksave".

2009 Jun 18
0
[LLVMdev] Explicitly Freeing Allocas
...nput, (possibly inside of loops) and I would rather avoid a stack overflow. You can't explicitly free a specific alloca, but you can use the llvm.stacksave and llvm.stackrestore intrinsics to free all allocas performed after calling the stacksave intrinsic. http://llvm.org/docs/LangRef.html#int_stacksave
2012 Feb 01
3
[LLVMdev] Issues with the llvm.stackrestore intrinsic
...hrough the variable tmp4 are wrong. Maybe some dependencies between alloca and the stackrestore instrinsic are missing or how should this work? In Intrinsics.td it says // Note: we treat stacksave/stackrestore as writemem because we don't otherwise // model their dependencies on allocas. def int_stacksave : Intrinsic<[llvm_ptr_ty]>, GCCBuiltin<"__builtin_stack_save">; def int_stackrestore : Intrinsic<[], [llvm_ptr_ty]>, GCCBuiltin<"__builtin_stack_restore">; Does "GCCBuiltin" imply "w...
2009 Jun 18
5
[LLVMdev] Explicitly Freeing Allocas
Hello, I would just like to ask if it's possible to explicitly free allocas. This is because I need to call functions that take structs of different sizes as input, (possibly inside of loops) and I would rather avoid a stack overflow. If this is not possible, an alternate solution would be for me to allocate an array of bytes larger than all the struct types I may be using, and cast that
2009 Jun 18
1
[LLVMdev] Explicitly Freeing Allocas
...er avoid a stack >> overflow. > > You can't explicitly free a specific alloca, but you can use the > llvm.stacksave > and llvm.stackrestore intrinsics to free all allocas performed after > calling the > stacksave intrinsic. > > http://llvm.org/docs/LangRef.html#int_stacksave > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > -- View this message in context: http://www.nabble.com/Explicitly-Freeing-Allocas-t...
2012 Feb 03
0
[LLVMdev] Issues with the llvm.stackrestore intrinsic - now LoopRotation handling of alloca
...aybe some dependencies between alloca and the stackrestore instrinsic > are missing or how should this work? > > In Intrinsics.td it says > > // Note: we treat stacksave/stackrestore as writemem because we don't > otherwise > // model their dependencies on allocas. > def int_stacksave : Intrinsic<[llvm_ptr_ty]>, > GCCBuiltin<"__builtin_stack_save">; > def int_stackrestore : Intrinsic<[], [llvm_ptr_ty]>, > GCCBuiltin<"__builtin_stack_restore">; > > Does "GCCB...