[LLVMdev] Dynamic Optimization Infrastructure

Yale Zhang yzhang1985 at gmail.com
Fri Oct 3 15:14:32 PDT 2008


Does anyone know if LLVM will soon have a dynamic optimization
infrastructure, namely support to generate trampolines back to the
JIT/execution manager that get run when a piece of code's frequency exceeds
a threshold? I see that there already is a relinkAndRecompileFunction in the
JIT, which will be useful. Rather than roll my own mechanisms and have to
worry about jumping back to code that gets replaced, are there already works
in progress?

Also, is there a way to generate platform independent trampolines (e.g.
generate IR that calls a function pointer to the execution engine I want to
go to). LLVM seems to be pretty strict about type casts, so I was afraid I
wouldn't be able to generate a function pointer initialized to arbitrary
data.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081003/b72881b8/attachment.html>


More information about the llvm-dev mailing list