search for: compilecallbacklay

Displaying 2 results from an estimated 2 matches for "compilecallbacklay".

Did you mean: compilecallbacklayer
2015 Jul 27
15
[LLVMdev] Help with using LLVM to re-compile hot functions at run-time
Hi Again, I'm a little confused regarding what is the exact Orc's functions I should use in order to save the functions code in a code cache so it could be later replaced with different versions of it and I appreciate your help. Just a reminder I want to dynamically recompile the program based on profile collected at the run-time. I would like to start executing the program from the
2015 Jul 28
0
[LLVMdev] Help with using LLVM to re-compile hot functions at run-time
...get. As things stand at the moment all function calls in the lazy JIT are indirected via function pointers. We want to add support for patchable call-sites, but this hasn't been implemented yet. The Indirect calls make recompilation reasonably easy: You could add a transform layer on top of the CompileCallbackLayer which would modify each function like this: void foo$impl() { void foo$impl() { // foo body -> if (trigger_condition) { } auto fooOpt = jit_recompile_hot(&foo); fooOpt(); }...