search for: moduletolink

Displaying 5 results from an estimated 5 matches for "moduletolink".

2017 Jun 19
2
JIT, LTO and @llvm.global_ctors: Looking for advise
...re looking for. 3. The resulting LLVM module is compiled and dynamically loaded. We are currently using the MCJIT API, but are planning to move to ORC very soon. Our LLVM module linking code goes roughly as follows: Linker linker(jittedModule); std::unique_ptr<llvm::Module> moduleToLink( getLazyIRFileModule(bcFileName, error, context)); linker.linkInModule(std::move(module), Linker::LinkOnlyNeeded | Linker::InternalizeLinkedSymbol); Our issue is with the Linker::LinkOnlyNeeded flag. Using it has a huge positive impact on link and...
2017 Jun 20
2
JIT, LTO and @llvm.global_ctors: Looking for advise
...sulting LLVM module is compiled and dynamically loaded. We > are currently using the MCJIT API, but are planning to move to ORC > very soon. > >Our LLVM module linking code goes roughly as follows: > > Linker linker(jittedModule); > std::unique_ptr<llvm::Module> moduleToLink( > getLazyIRFileModule(bcFileName, error, context)); > linker.linkInModule(std::move(module), > Linker::LinkOnlyNeeded | > Linker::InternalizeLinkedSymbol); > >Our issue is with the Linker::LinkOnlyNeeded flag. Using it has a huge >...
2012 Dec 17
1
[LLVMdev] Execution Engine issue with composite module
...ded an external declaration on module Y of the functions defined in X. i also link the except-handling module, but i think it is peripheral to the issue i like all the modules together in a single module called executableModule. I link them with the method: Linker::LinkModules(executableModule , moduleToLink, llvm::Linker::PreserveSource, &errorMsg); i call llvm::verifyModule(* executableModule, llvm::AbortProcessAction, &err); which doesn't seem to find anything wrong with the linked module. then i proceed to create the executionEngine: llvm::EngineBuilder eB(executableMod...
2017 Jun 20
2
JIT, LTO and @llvm.global_ctors: Looking for advise
...led and dynamically loaded. We >> are currently using the MCJIT API, but are planning to move to ORC >> very soon. >> >>Our LLVM module linking code goes roughly as follows: >> >> Linker linker(jittedModule); >> std::unique_ptr<llvm::Module> moduleToLink( >> getLazyIRFileModule(bcFileName, error, context)); >> linker.linkInModule(std::move(module), >> Linker::LinkOnlyNeeded | >> Linker::InternalizeLinkedSymbol); >> >>Our issue is with the Linker::LinkOnlyNeeded flag....
2012 Dec 13
2
[LLVMdev] Fwd: error while linking modules with exception handling demo code
...cutionEngine (not using new MCJIT, but it is not relevant for this question, since the error happens during linkage). It contains definitions from the ExceptionDemo sample AND the foo function of module X already linked (modules are being linked with linker()->LinkModules(ExecutableCodeModule , moduleToLink, llvm::Linker::PreserveSource, &errorMsg); Exception Demo is from https://llvm.org/svn/llvm-project/llvm/trunk/examples/ExceptionDemo/ExceptionDemo.cpp ; ModuleID = 'ExecutableCodeModule' @typeInfo0 = constant { i32 } zeroinitializer @typeInfo1 = constant { i32 } { i32 1 } @typeInfo2...