Displaying 3 results from an estimated 3 matches for "addintrinsicglobalvariable".
2017 Jun 19
2
JIT, LTO and @llvm.global_ctors: Looking for advise
...d :-(. AFAICT, the Linker code assumes
ThinLTO when the LinkOnlyNeeded flags is specified, and full-LTO
otherwise.
To resolve this, we have locally patched
llvm/lib/Linker/LinkModules.cpp with:
bool ModuleLinker::run() {
// ....
if (shouldImportIntrinsicGlobalVariables()) {
auto addIntrinsicGlobalVariable = [ValuesToLink,
srcM](llvm::StringRef name) {
if (GlobalValue *GV = SrcM->getGlobalVariable(name)) {
ValuesToLink.insert(GV);
}
};
// These are added here, because they must not be internalized.
addIntrinsicGl...
2017 Jun 20
2
JIT, LTO and @llvm.global_ctors: Looking for advise
...TO when the LinkOnlyNeeded flags is specified, and full-LTO
>otherwise.
>
>To resolve this, we have locally patched
>llvm/lib/Linker/LinkModules.cpp with:
>
> bool ModuleLinker::run() {
>
> // ....
>
> if (shouldImportIntrinsicGlobalVariables()) {
> auto addIntrinsicGlobalVariable = [ValuesToLink,
> srcM](llvm::StringRef name) {
> if (GlobalValue *GV = SrcM->getGlobalVariable(name)) {
> ValuesToLink.insert(GV);
> }
> };
>
> // These are added here, because they must not be intern...
2017 Jun 20
2
JIT, LTO and @llvm.global_ctors: Looking for advise
...d, and full-LTO
>>otherwise.
>>
>>To resolve this, we have locally patched
>>llvm/lib/Linker/LinkModules.cpp with:
>>
>> bool ModuleLinker::run() {
>>
>> // ....
>>
>> if (shouldImportIntrinsicGlobalVariables()) {
>> auto addIntrinsicGlobalVariable = [ValuesToLink,
>> srcM](llvm::StringRef name) {
>> if (GlobalValue *GV = SrcM->getGlobalVariable(name)) {
>> ValuesToLink.insert(GV);
>> }
>> };
>>
>> // These are added here, bec...