Displaying 2 results from an estimated 2 matches for "emitandfinalize".
2018 May 16
1
LLVM JIT 3.9 vs 6.0: How to emitAndFinalize multiple modules correctly?
Hi all,
I am having hard time figuring out how I should use the API for JIT in LLVM 6.
In LLVM 3.9 I am used to adding all objects at once and
emitAndFinalizing them all:
handle = objectLayer.addObjectSet(objectFiles, memoryManager, resolver);
objectLayer.emitAndFinalize(handle);
In LLVM 6.0 the objects are added one by one:
auto handle = objectLayer.addObject(objectFile, resolver).get();
objectLayer.emitAndFinalize(handle);
The problem is that emitAndFinalize in this case works for one module
and JIT exits on
"LLVM ERROR: Program used external function ...
2015 May 30
2
[LLVMdev] MCJit interface question
Agreed, that sounds like the best plan. I'll look into moving LLILC to ORC.
Thanks
-Joseph
From: Russell Hadley
Sent: Friday, May 29, 2015 8:13 PM
To: Lang Hames; Joseph Tremoulet
Cc: llvmdev at cs.uiuc.edu
Subject: RE: [LLVMdev] MCJit interface question
Hey Joseph,
What Lang said made me wonder. Is it the right time for us (LLILC) to move to ORC? The long term plan was to go there but