Lines Matching refs:GlobalValue

177              GlobalValue::GUID GUID) {  in selectCallee()
188 if (GlobalValue::isInterposableLinkage(GVSummary->linkage())) { in selectCallee()
206 if (GlobalValue::isLocalLinkage(Summary->linkage()) && in selectCallee()
265 GlobalValue::isInterposableLinkage(GVS->second->linkage())) in shouldImportGlobal()
293 return GlobalValue::isLocalLinkage(RefSummary->linkage()) && in computeImportForReferencedGlobals()
602 GlobalValue::GUID G) { in isGlobalVarSummary()
625 DenseSet<GlobalValue::GUID> FlattenedImports; in checkVariableImport()
849 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols, in computeDeadSymbolsAndUpdateIndirectCalls()
850 function_ref<PrevailingType(GlobalValue::GUID)> isPrevailing) { in computeDeadSymbolsAndUpdateIndirectCalls()
911 if (S->linkage() == GlobalValue::AvailableExternallyLinkage || in computeDeadSymbolsAndUpdateIndirectCalls()
912 S->linkage() == GlobalValue::WeakODRLinkage || in computeDeadSymbolsAndUpdateIndirectCalls()
913 S->linkage() == GlobalValue::LinkOnceODRLinkage) in computeDeadSymbolsAndUpdateIndirectCalls()
915 else if (GlobalValue::isInterposableLinkage(S->linkage())) in computeDeadSymbolsAndUpdateIndirectCalls()
965 const DenseSet<GlobalValue::GUID> &GUIDPreservedSymbols, in computeDeadSymbolsWithConstProp()
966 function_ref<PrevailingType(GlobalValue::GUID)> isPrevailing, in computeDeadSymbolsWithConstProp()
1016 bool llvm::convertToDeclaration(GlobalValue &GV) { in convertToDeclaration()
1025 V->setLinkage(GlobalValue::ExternalLinkage); in convertToDeclaration()
1029 GlobalValue *NewGV; in convertToDeclaration()
1033 GlobalValue::ExternalLinkage, GV.getAddressSpace(), in convertToDeclaration()
1038 /*isConstant*/ false, GlobalValue::ExternalLinkage, in convertToDeclaration()
1054 auto FinalizeInModule = [&](GlobalValue &GV, bool Propagate = false) { in thinLTOFinalizeInModule()
1079 if (GlobalValue::isLocalLinkage(GV.getLinkage()) || in thinLTOFinalizeInModule()
1083 GlobalValue::isLocalLinkage(NewLinkage) || in thinLTOFinalizeInModule()
1092 if (GS->second->getVisibility() != GlobalValue::DefaultVisibility) in thinLTOFinalizeInModule()
1103 if (GlobalValue::isAvailableExternallyLinkage(NewLinkage) && in thinLTOFinalizeInModule()
1104 GlobalValue::isInterposableLinkage(GV.getLinkage())) { in thinLTOFinalizeInModule()
1116 if (NewLinkage == GlobalValue::WeakODRLinkage && in thinLTOFinalizeInModule()
1119 GV.setVisibility(GlobalValue::HiddenVisibility); in thinLTOFinalizeInModule()
1149 auto MustPreserveGV = [&](const GlobalValue &GV) -> bool { in thinLTOInternalizeModule()
1168 std::string OrigId = GlobalValue::getGlobalIdentifier( in thinLTOInternalizeModule()
1169 OrigName, GlobalValue::InternalLinkage, in thinLTOInternalizeModule()
1171 GS = DefinedGlobals.find(GlobalValue::getGUID(OrigId)); in thinLTOInternalizeModule()
1179 GS = DefinedGlobals.find(GlobalValue::getGUID(OrigName)); in thinLTOInternalizeModule()
1183 return !GlobalValue::isLocalLinkage(GS->second->linkage()); in thinLTOInternalizeModule()
1213 GV.setLinkage(GlobalValue::InternalLinkage); in internalizeGVsAfterImport()
1214 GV.setVisibility(GlobalValue::DefaultVisibility); in internalizeGVsAfterImport()
1250 SetVector<GlobalValue *> GlobalsToImport; in importFunctions()
1393 if (GlobalValue::isLocalLinkage(S->linkage())) in doImportingForModule()
1394 S->setLinkage(GlobalValue::ExternalLinkage); in doImportingForModule()