[llvm-dev] How to recompile functions with ORC JIT?

Theodoros Theododiris via llvm-dev llvm-dev at lists.llvm.org
Thu May 26 23:49:22 PDT 2016


Hello,

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:

http://lists.llvm.org/pipermail/llvm-dev/2015-July/088665.html


What I am trying to figure out is how the function pointer can be 
updated to point to the newly

compiled version.


Thanks,

Theodor



More information about the llvm-dev mailing list