Home
last modified time | relevance | path

Searched refs:GVS (Results 1 – 14 of 14) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DModuleSummaryIndex.cpp226 if (auto *GVS = dyn_cast<GlobalVarSummary>(Ref->getBaseObject())) { in propagateAttributesToRefs() local
228 GVS->setReadOnly(false); in propagateAttributesToRefs()
230 GVS->setWriteOnly(false); in propagateAttributesToRefs()
296 if (auto *GVS = dyn_cast<GlobalVarSummary>(S->getBaseObject())) in propagateAttributes() local
302 GVS->setReadOnly(false); in propagateAttributes()
303 GVS->setWriteOnly(false); in propagateAttributes()
322 if (auto *GVS = dyn_cast<GlobalVarSummary>( in propagateAttributes() local
324 if (isGlobalValueLive(GVS)) { in propagateAttributes()
325 if (GVS->maybeReadOnly()) in propagateAttributes()
327 if (GVS->maybeWriteOnly()) in propagateAttributes()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DSummaryBasedOptimizations.cpp39 for (auto &GVS : V.getSummaryList()) { in initializeCounts() local
40 auto S = GVS.get()->getBaseObject(); in initializeCounts()
68 for (auto &GVS : V.getSummaryList()) { in computeSyntheticCounts() local
69 auto S = GVS.get()->getBaseObject(); in computeSyntheticCounts()
H A DLTOBackend.cpp536 if (GlobalValueSummary *GVS = DefinedGlobals.lookup(GV.getGUID())) in dropDeadSymbols() local
537 if (!Index.isGlobalValueLive(GVS)) { in dropDeadSymbols()
H A DLTO.cpp255 if (auto *GVS = dyn_cast<GlobalVarSummary>(GS)) { in computeLTOCacheKey() local
256 AddUnsigned(GVS->maybeReadOnly()); in computeLTOCacheKey()
257 AddUnsigned(GVS->maybeWriteOnly()); in computeLTOCacheKey()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionImport.cpp329 const auto &GVS = DefinedGVSummaries.find(VI.getGUID()); in shouldImportGlobal() local
330 if (GVS == DefinedGVSummaries.end()) in shouldImportGlobal()
343 GlobalValue::isInterposableLinkage(GVS->second->linkage()) && in shouldImportGlobal()
344 !IsPrevailing(VI.getGUID(), GVS->second)) in shouldImportGlobal()
375 const auto *GVS = dyn_cast<GlobalVarSummary>(RefSummary.get()); in onImportingSummaryImpl() local
381 if (!GVS || !Index.canImportGlobalVar(GVS, /* AnalyzeRefs */ true) || in onImportingSummaryImpl()
382 LocalNotInModule(GVS)) in onImportingSummaryImpl()
407 if (!Index.isWriteOnly(GVS)) in onImportingSummaryImpl()
408 Worklist.emplace_back(GVS); in onImportingSummaryImpl()
509 const GlobalValueSummary *GVS = nullptr; in computeImportForModule() local
[all …]
H A DFunctionAttrs.cpp353 for (const auto &GVS : VI.getSummaryList()) { in calculatePrevailingSummary() local
354 if (!GVS->isLive()) in calculatePrevailingSummary()
357 FunctionSummary *FS = dyn_cast<FunctionSummary>(GVS->getBaseObject()); in calculatePrevailingSummary()
362 const auto &Linkage = GVS->linkage(); in calculatePrevailingSummary()
375 assert(IsPrevailing(VI.getGUID(), GVS.get())); in calculatePrevailingSummary()
382 if (IsPrevailing(VI.getGUID(), GVS.get())) { in calculatePrevailingSummary()
H A DLowerTypeTests.cpp2084 for (auto &GVS : I.second.SummaryList) in lower() local
2085 if (GVS->isLive()) in lower()
2086 for (const auto &Ref : GVS->refs()) in lower()
2112 for (const auto &GVS : VI.getSummaryList()) in lower() local
2113 if (GVS->isLive() && !GlobalValue::isLocalLinkage(GVS->linkage())) in lower()
H A DMemProfContextDisambiguation.cpp3597 for (auto &GVS : TheFnVI.getSummaryList()) { in applyImport() local
3598 if (GVS->modulePath() == SrcModule) { in applyImport()
3599 GVSummary = GVS.get(); in applyImport()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionImportUtils.cpp267 auto *GVS = dyn_cast_or_null<GlobalVarSummary>( in processGlobalForThinLTO() local
269 if (GVS && in processGlobalForThinLTO()
270 (ImportIndex.isReadOnly(GVS) || ImportIndex.isWriteOnly(GVS))) { in processGlobalForThinLTO()
279 if (ImportIndex.isWriteOnly(GVS)) in processGlobalForThinLTO()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DStackSafetyAnalysis.cpp729 for (const auto& GVS : SummaryList) { in findCalleeFunctionSummary() local
730 if (!GVS->isLive()) in findCalleeFunctionSummary()
732 if (const AliasSummary *AS = dyn_cast<AliasSummary>(GVS.get())) in findCalleeFunctionSummary()
735 if (!isa<FunctionSummary>(GVS->getBaseObject())) in findCalleeFunctionSummary()
737 if (GlobalValue::isLocalLinkage(GVS->linkage())) { in findCalleeFunctionSummary()
738 if (GVS->modulePath() == ModuleId) { in findCalleeFunctionSummary()
739 S = GVS.get(); in findCalleeFunctionSummary()
742 } else if (GlobalValue::isExternalLinkage(GVS->linkage())) { in findCalleeFunctionSummary()
747 S = GVS.get(); in findCalleeFunctionSummary()
748 } else if (GlobalValue::isWeakLinkage(GVS in findCalleeFunctionSummary()
1144 for (auto &GVS : Index) generateParamAccessSummary() local
1155 for (auto &GVS : Index) { generateParamAccessSummary() local
[all...]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h648 static bool classof(const GlobalValueSummary *GVS) {
649 return GVS->getSummaryKind() == AliasKind;
947 static bool classof(const GlobalValueSummary *GVS) {
948 return GVS->getSummaryKind() == FunctionKind;
1174 static bool classof(const GlobalValueSummary *GVS) {
1175 return GVS->getSummaryKind() == GlobalVarKind;
1576 bool isReadOnly(const GlobalVarSummary *GVS) const {
1577 return WithAttributePropagation && GVS->maybeReadOnly();
1579 bool isWriteOnly(const GlobalVarSummary *GVS) const {
1580 return WithAttributePropagation && GVS->maybeWriteOnly();
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-link/
H A Dllvm-link.cpp463 std::move(M), ApplicableFlags, [](Module &M, const StringSet<> &GVS) { in linkFiles() argument
464 internalizeModule(M, [&GVS](const GlobalValue &GV) { in linkFiles()
465 return !GV.hasName() || (GVS.count(GV.getName()) == 0); in linkFiles()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenAction.cpp250 [](llvm::Module &M, const llvm::StringSet<> &GVS) { in LinkInModules() argument
251 internalizeModule(M, [&GVS](const llvm::GlobalValue &GV) { in LinkInModules()
252 return !GV.hasName() || (GVS.count(GV.getName()) == 0); in LinkInModules()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp4592 auto shouldImportValueAsDecl = [&](GlobalValueSummary *GVS) -> bool { in writeCombinedGlobalValueSummary() argument
4595 return DecSummaries->count(GVS); in writeCombinedGlobalValueSummary()