[LLVMdev] llvm.gcroot suggestion

Reid Kleckner reid.kleckner at gmail.com
Thu Feb 17 16:57:16 PST 2011


On Thu, Feb 17, 2011 at 7:36 PM, Talin <viridia at gmail.com> wrote:
> llvm.gc.undeclare(alloca) - tells LLVM that the alloca should no longer be
> considered a GC root. If llvm.undeclare() is never called, then the alloca
> is treated as a root until the end of the function.

LLVM has a lifetime.end intrinsic which is similar:
http://llvm.org/docs/LangRef.html#int_lifetime_end

Reid



More information about the llvm-dev mailing list