Lines Matching refs:GlobalValue
201 if (GlobalValue::isInterposableLinkage(GVSummary->linkage())) in qualifyCalleeCandidates()
225 if (GlobalValue::isLocalLinkage(Summary->linkage()) && in qualifyCalleeCandidates()
295 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
315 GlobalValue::isInterposableLinkage(GVS->second->linkage()) && in shouldImportGlobal()
342 return GlobalValue::isLocalLinkage(RefSummary->linkage()) && in onImportingSummaryImpl()
380 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)> in GlobalsImporter()
401 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
407 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)> in ModuleImportsManager()
425 create(function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
512 GlobalValue::isLocalLinkage(GVS->linkage())) in computeImportForModule()
553 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)> in WorkloadImportsManager()
640 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)> in create()
683 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)> in computeImportForFunction()
930 GlobalValue::GUID G) { in isGlobalVarSummary()
953 DenseSet<GlobalValue::GUID> FlattenedImports; in checkVariableImport()
971 !(GVS->linkage() == GlobalValue::AvailableExternallyLinkage || in checkVariableImport()
972 GVS->linkage() == GlobalValue::WeakODRLinkage || in checkVariableImport()
973 GVS->linkage() == GlobalValue::LinkOnceODRLinkage); in checkVariableImport()
990 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)> in ComputeCrossModuleImport()
1106 function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)> in ComputeCrossModuleImportForModuleForTest()
1199 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols, in computeDeadSymbolsAndUpdateIndirectCalls()
1200 function_ref<PrevailingType(GlobalValue::GUID)> isPrevailing) { in computeDeadSymbolsAndUpdateIndirectCalls()
1261 if (S->linkage() == GlobalValue::AvailableExternallyLinkage || in computeDeadSymbolsAndUpdateIndirectCalls()
1262 S->linkage() == GlobalValue::WeakODRLinkage || in computeDeadSymbolsAndUpdateIndirectCalls()
1263 S->linkage() == GlobalValue::LinkOnceODRLinkage) in computeDeadSymbolsAndUpdateIndirectCalls()
1265 else if (GlobalValue::isInterposableLinkage(S->linkage())) in computeDeadSymbolsAndUpdateIndirectCalls()
1315 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols, in computeDeadSymbolsWithConstProp()
1316 function_ref<PrevailingType(GlobalValue::GUID)> isPrevailing, in computeDeadSymbolsWithConstProp()
1365 bool llvm::convertToDeclaration(GlobalValue &GV) { in convertToDeclaration()
1374 V->setLinkage(GlobalValue::ExternalLinkage); in convertToDeclaration()
1378 GlobalValue *NewGV; in convertToDeclaration()
1382 GlobalValue::ExternalLinkage, GV.getAddressSpace(), in convertToDeclaration()
1387 /*isConstant*/ false, GlobalValue::ExternalLinkage, in convertToDeclaration()
1404 auto FinalizeInModule = [&](GlobalValue &GV, bool Propagate = false) { in thinLTOFinalizeInModule()
1429 if (GlobalValue::isLocalLinkage(GV.getLinkage()) || in thinLTOFinalizeInModule()
1433 GlobalValue::isLocalLinkage(NewLinkage) || in thinLTOFinalizeInModule()
1442 if (GS->second->getVisibility() != GlobalValue::DefaultVisibility) in thinLTOFinalizeInModule()
1453 if (GlobalValue::isAvailableExternallyLinkage(NewLinkage) && in thinLTOFinalizeInModule()
1454 GlobalValue::isInterposableLinkage(GV.getLinkage())) { in thinLTOFinalizeInModule()
1466 if (NewLinkage == GlobalValue::WeakODRLinkage && in thinLTOFinalizeInModule()
1469 GV.setVisibility(GlobalValue::HiddenVisibility); in thinLTOFinalizeInModule()
1504 GO.setLinkage(GlobalValue::AvailableExternallyLinkage); in thinLTOFinalizeInModule()
1520 GA.setLinkage(GlobalValue::AvailableExternallyLinkage); in thinLTOFinalizeInModule()
1532 auto MustPreserveGV = [&](const GlobalValue &GV) -> bool { in thinLTOInternalizeModule()
1551 std::string OrigId = GlobalValue::getGlobalIdentifier( in thinLTOInternalizeModule()
1552 OrigName, GlobalValue::InternalLinkage, in thinLTOInternalizeModule()
1554 GS = DefinedGlobals.find(GlobalValue::getGUID(OrigId)); in thinLTOInternalizeModule()
1562 GS = DefinedGlobals.find(GlobalValue::getGUID(OrigName)); in thinLTOInternalizeModule()
1566 return !GlobalValue::isLocalLinkage(GS->second->linkage()); in thinLTOInternalizeModule()
1596 GV.setLinkage(GlobalValue::InternalLinkage); in internalizeGVsAfterImport()
1597 GV.setVisibility(GlobalValue::DefaultVisibility); in internalizeGVsAfterImport()
1633 SetVector<GlobalValue *> GlobalsToImport; in importFunctions()
1748 Module &M, function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)> in doImportingForModuleForTest()
1779 if (GlobalValue::isLocalLinkage(S->linkage())) in doImportingForModuleForTest()
1780 S->setLinkage(GlobalValue::ExternalLinkage); in doImportingForModuleForTest()
1816 auto isPrevailing = [](GlobalValue::GUID, const GlobalValueSummary *) { in run()