Displaying 2 results from an estimated 2 matches for "defgenerator".
2019 Jun 27
2
Questions about moving from MCJIT to Orc JIT
...n define them in JITDylib.
For example, Suppose you want to add "your host process (on which JIT runs)
symbols to the JIT".
You can do
JD.setGenerator(DynamicLibrarySearchGenerator::GetForCurrentProcess(DL.getGlobalPrefix()))
Under hood, ORC normally search for your host symbols in the defGenerator
if it can't find symbols anywhere else.
You can look at core.cpp at line 1163 to see how it works!
I highly recommended you to watch "Updating ORC for Concurrency" dev
meeting talks, it is explained in detail,,
For question 4, I don't know maybe If I know after sometime I will wr...
2019 Jun 27
2
Questions about moving from MCJIT to Orc JIT
Hi Bjoern,
CC'ing Lang hames
For questions,
1. In short yes, you can replace the memory manager, default one provided
is section memory manager.
2. If you mean by " address of already compiled code", yes you can do that.
Like this
JITDylib.define(absoluteSymbols, ( Your_own_symbol ,
JITTargetAddress(Address of function))), now ORC can resolve all the
references to Your_own_symbol