[llvm-dev] How to recompile functions with ORC JIT?
David Blaikie via llvm-dev
llvm-dev at lists.llvm.org
Fri May 27 10:38:11 PDT 2016
Ultravague answer: There are a few different Orc layers for different
levels of indirection needed for different levels of substitutability. One
way is to indirect every call through global function pointers - so when
you want to replace the function you write the new function pointer to the
global variable. I forget which layers do which kinds of indirection.
On Thu, May 26, 2016 at 11:49 PM, Theodoros Theododiris via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> I am trying to figure out how to recompile functions multiple times during
> run-time with ORC JIT
> and I'd appreciate any help/advice.
> My use case is t he following: every time a function of interest
> (annotated) is called, profiling data
> are gathered. Given enough data the function is recompiled using different
> optimizations. This happens
> repeatedly until the "best" optimization parameters are found.
> A similar question was asked before and a solution was suggested:
> What I am trying to figure out is how the function pointer can be updated
> to point to the newly
> compiled version.
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev