search for: internalizelinkedsymbol

Displaying 3 results from an estimated 3 matches for "internalizelinkedsymbol".

2017 Jun 19
2
JIT, LTO and @llvm.global_ctors: Looking for advise
...odule 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 compilation time :-). But, it causes the @llvm.global_ctors and @llvm.global_dtors references from the linked-in modules to be discarded :-(. AFAICT, the Linker code assumes ThinLTO when the LinkOn...
2017 Jun 20
2
JIT, LTO and @llvm.global_ctors: Looking for advise
...hly 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 compilation time :-). But, it causes the >@llvm.global_ctors and @llvm.global_dtors references from the >linked-in modules to be discarded :-(. AFAICT, the Linker code assumes &gt...
2017 Jun 20
2
JIT, LTO and @llvm.global_ctors: Looking for advise
...;> 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 compilation time :-). But, it causes the >>@llvm.global_ctors and @llvm.global_dtors references from the >>linked-in modules to be discarded :-(. AFAICT, the Lin...