| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | FunctionImport.cpp | 250 const auto &GVS = DefinedGVSummaries.find(VI.getGUID()); in shouldImportGlobal() 369 if (DefinedGVSummaries.count(VI.getGUID())) { in computeImportForFunction() 644 if (!FlattenedImports.count(VI.getGUID()) && in checkVariableImport() 684 auto DS = DefinedGVSummaries.find(EI.getGUID()); in ComputeCrossModuleImport() 711 if (!DefinedGVSummaries.count(EI->getGUID())) in ComputeCrossModuleImport() 907 if (isPrevailing(VI.getGUID()) == PrevailingType::No) { in computeDeadSymbolsAndUpdateIndirectCalls() 1056 const auto &GS = DefinedGlobals.find(GV.getGUID()); in thinLTOFinalizeInModule() 1159 auto GS = DefinedGlobals.find(GV.getGUID()); in thinLTOInternalizeModule() 1254 auto GUID = F.getGUID(); in importFunctions() 1276 auto GUID = GV.getGUID(); in importFunctions() [all …]
|
| H A D | SampleProfile.cpp | 322 {Function::getGUID(OrigName), OrigName}); in GUIDToFuncNameMapper() 334 {Function::getGUID(CanonName), CanonName}); in GUIDToFuncNameMapper() 407 return LCS->getGUID(LCS->getName()) < RCS->getGUID(RCS->getName()); in operator ()() 692 return FunctionSamples::getGUID(L->getName()) < in findIndirectCallFunctionSamples() 693 FunctionSamples::getGUID(R->getName()); in findIndirectCallFunctionSamples() 786 if (ValueData[I].Value == Function::getGUID(Candidate)) in doesHistoryAllowICP() 925 Function::getGUID(R->getValue()->getName()), NOMORE_ICP_MAGICNUM}}; in tryPromoteAndInlineCandidate() 1013 FunctionSamples::getGUID(CB->getCalledFunction()->getName())); in findExternalInlineCandidate() 1053 InlinedGUIDs.insert(FunctionSamples::getGUID(CalleeSample->getName())); in findExternalInlineCandidate() 1063 InlinedGUIDs.insert(FunctionSamples::getGUID(TS.getKey())); in findExternalInlineCandidate() [all …]
|
| H A D | SampleProfileProbe.cpp | 188 Function::getGUID(FunctionSamples::getCanonicalFnName(F))); in getDesc() 288 uint64_t Guid = Function::getGUID(F.getName()); in instrumentOneFunc()
|
| H A D | WholeProgramDevirt.cpp | 800 !DynamicExportSymbols.count(GV.getGUID())) in updateVCallVisibilityInModule() 1246 if (ValueInfo TheFnVI = ExportSummary->getValueInfo(TheFn->getGUID())) in trySingleImplDevirt() 1292 ExportedGUIDs.insert(TheFn.getGUID()); in trySingleImplDevirt() 2090 const auto TheFnGUID = TheFn->getGUID(); in lookUpFunctionValueInfo() 2091 const auto TheFnGUIDWithExportedName = GlobalValue::getGUID(TheFn->getName()); in lookUpFunctionValueInfo() 2182 MetadataByGUID[GlobalValue::getGUID(TypeId->getString())].push_back( in run() 2267 GlobalValue::getGUID(cast<MDString>(S.first.TypeID)->getString()); in run() 2313 NameByGUID[GlobalValue::getGUID(P.first)].push_back(P.first); in run()
|
| /llvm-project-15.0.7/llvm/unittests/ProfileData/ |
| H A D | MemProfTest.cpp | 102 const uint64_t ExpectedHash = llvm::Function::getGUID(FunctionName); 184 const llvm::GlobalValue::GUID FooId = IndexedMemProfRecord::getGUID("foo"); in TEST() 200 const llvm::GlobalValue::GUID BarId = IndexedMemProfRecord::getGUID("bar"); in TEST() 220 const llvm::GlobalValue::GUID XyzId = IndexedMemProfRecord::getGUID("xyz"); in TEST() 231 const llvm::GlobalValue::GUID AbcId = IndexedMemProfRecord::getGUID("abc"); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ModuleSummaryAnalysis.cpp | 173 GlobalValue::GUID Guid = GlobalValue::getGUID(TypeId->getString()); in addIntrinsicToSummary() 200 GlobalValue::GUID Guid = GlobalValue::getGUID(TypeId->getString()); in addIntrinsicToSummary() 514 CantBePromoted.insert(F.getGUID()); in computeFunctionSummary() 642 CantBePromoted.insert(V.getGUID()); in computeVariableSummary() 662 auto AliaseeVI = Index.getValueInfo(Aliasee->getGUID()); in computeAliasSummary() 668 CantBePromoted.insert(A.getGUID()); in computeAliasSummary() 674 if (ValueInfo VI = Index.getValueInfo(GlobalValue::getGUID(Name))) in setLiveRoot() 706 CantBePromoted.insert(V->getGUID()); in buildModuleSummaryIndex() 737 CantBePromoted.insert(GV->getGUID()); in buildModuleSummaryIndex() 855 return !CantBePromoted.count(VI.getGUID()); in buildModuleSummaryIndex() [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-profgen/ |
| H A D | CSPreInliner.h | 53 return LHS.CalleeSamples->getGUID(LHS.CalleeSamples->getName()) < in operator() 54 RHS.CalleeSamples->getGUID(RHS.CalleeSamples->getName()); in operator()
|
| H A D | ProfileGenerator.cpp | 604 Function::getGUID(FunctionProfile->getName())); in getLeafProfileAndAddTotalSamples() 624 Function::getGUID(FunctionProfile->getName())); in getLeafProfileAndAddTotalSamples()
|
| /llvm-project-15.0.7/llvm/examples/OrcV2Examples/LLJITWithThinLTOSummaries/ |
| H A D | LLJITWithThinLTOSummaries.cpp | 80 << "' (GUID: " << GlobalValue::getGUID(GlobalValueName) << ") in:\n"; in log() 114 << "' (GUID: " << GlobalValue::getGUID(GlobalValueName) << ") in:\n"; in log() 138 GlobalValue::GUID G = GlobalValue::getGUID(FunctionName); in getMainModulePath()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | ModuleSummaryIndex.h | 180 GlobalValue::GUID getGUID() const { return getRef()->first; } in getGUID() function 241 OS << VI.getGUID(); 262 return A.getGUID() < B.getGUID(); 494 return AliaseeValueInfo.getGUID(); 1352 auto VP = getOrInsertValuePtr(GV->getGUID()); 1378 addGlobalValueSummary(getOrInsertValueInfo(GlobalValue::getGUID(ValueName)), 1387 addOriginalName(VI.getGUID(), Summary->getOriginalName()); 1434 return getGlobalValueSummary(GV.getGUID(), PerModuleIndex); 1513 auto TidIter = TypeIdMap.equal_range(GlobalValue::getGUID(TypeId)); 1518 {GlobalValue::getGUID(TypeId), {std::string(TypeId), TypeIdSummary()}}); [all …]
|
| H A D | GlobalValue.h | 571 static GUID getGUID(StringRef GlobalName) { return MD5Hash(GlobalName); } in getGUID() function 575 GUID getGUID() const { return getGUID(getGlobalIdentifier()); } in getGUID() function
|
| H A D | ModuleSummaryIndexYAML.h | 247 Refs.push_back(VI.getGUID()); 270 V.insert({GlobalValue::getGUID(Key), {std::string(Key), TId}});
|
| /llvm-project-15.0.7/llvm/lib/LTO/ |
| H A D | LTO.cpp | 151 auto GUID = VI.getGUID(); in computeLTOCacheKey() 215 AddUsedCfiGlobal(VI.getGUID()); in computeLTOCacheKey() 234 AddUsedCfiGlobal(ET.first.getGUID()); in computeLTOCacheKey() 348 if (isPrevailing(VI.getGUID(), S.get())) { in thinLTOResolvePrevailingGUID() 362 !GUIDPreservedSymbols.count(VI.getGUID())); in thinLTOResolvePrevailingGUID() 379 recordNewLinkage(S->modulePath(), VI.getGUID(), S->linkage()); in thinLTOResolvePrevailingGUID() 442 isPrevailing(VI.getGUID(), S.get())) && in thinLTOInternalizeAndPromoteGUID() 906 auto GUID = GlobalValue::getGUID(GlobalValue::getGlobalIdentifier( in addThinLTO() 1010 GlobalValue::GUID GUID = GlobalValue::getGUID( in run() 1516 auto GUID = GlobalValue::getGUID( in runThinLTO() [all …]
|
| H A D | ThinLTOCodeGenerator.cpp | 298 PreservedGUID.insert(GlobalValue::getGUID(Sym.getIRName())); in addUsedSymbolToPreservedGUID() 311 GUIDs.insert(GlobalValue::getGUID(GlobalValue::getGlobalIdentifier( in computeGUIDPreservedSymbols() 661 GUIDPreservedSymbols.count(VI.getGUID()); in operator ()()
|
| /llvm-project-15.0.7/llvm/lib/ProfileData/ |
| H A D | MemProf.cpp | 73 GlobalValue::GUID IndexedMemProfRecord::getGUID(const StringRef FunctionName) { in getGUID() function in llvm::memprof::IndexedMemProfRecord 81 return Function::getGUID(FunctionName.take_front(Pos)); in getGUID()
|
| H A D | InstrProf.cpp | 392 MD5FuncMap.emplace_back(Function::getGUID(PGOFuncName), &F); in create() 416 MD5FuncMap.emplace_back(Function::getGUID(OtherFuncName), &F); in create()
|
| H A D | RawMemProfReader.cpp | 427 IndexedMemProfRecord::getGUID(DIFrame.FunctionName); in symbolizeAndFilterStackFrames()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | ModuleSummaryIndex.cpp | 365 O << " " << (F == nullptr ? "External" : "") << " " << utostr(V.getGUID()) in dumpSCCs() 485 return VI.name().empty() ? getNodeVisualName(VI.getGUID()) : VI.name().str(); in getNodeVisualName() 640 Draw(SummaryIt.first, R.getGUID(), in exportToDot() 650 Draw(SummaryIt.first, CGEdge.first.getGUID(), in exportToDot()
|
| H A D | AsmWriter.cpp | 1065 CreateGUIDSlot(GlobalValue::getGUID(TId.first)); in processIndex() 2907 auto GUID = GlobalValue::getGUID(TId.first); in printModuleSummaryIndex() 3013 Out << "^" << Machine.getGUIDSlot(P.VTableVI.getGUID()); in printTypeIdCompatibleVtableSummary() 3101 Out << "(virtFunc: ^" << Machine.getGUIDSlot(P.FuncVI.getGUID()) in printGlobalVarSummary() 3168 Out << "(callee: ^" << Machine.getGUIDSlot(Call.first.getGUID()); in printFunctionSummary() 3198 Out << "(callee: ^" << Machine.getGUIDSlot(Call.Callee.getGUID()); in printFunctionSummary() 3341 Out << "^" << Machine.getGUIDSlot(Ref.getGUID()); in printSummary() 3354 Out << "guid: " << VI.getGUID(); in printSummaryInfo() 3366 Out << " ; guid = " << VI.getGUID(); in printSummaryInfo()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | PseudoProbePrinter.cpp | 43 CallerGuid = Function::getGUID(Name); in emitPseudoProbe()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | PseudoProbeInserter.cpp | 135 return Function::getGUID(Name); in getFuncGUID()
|
| /llvm-project-15.0.7/llvm/include/llvm/ProfileData/ |
| H A D | SampleProf.h | 111 GUIDBuf = std::to_string(Function::getGUID(Name)); 985 S.insert(getGUID(getName())); 994 S.insert(getGUID(TS.getKey())); 1132 static uint64_t getGUID(StringRef Name) { 1133 return UseMD5 ? std::stoull(Name.data()) : Function::getGUID(Name);
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | FunctionImportUtils.cpp | 204 VI = ImportIndex.getValueInfo(GV.getGUID()); in processGlobalForThinLTO()
|
| /llvm-project-15.0.7/llvm/tools/llvm-link/ |
| H A D | llvm-link.cpp | 364 Entry.insert(F->getGUID()); in importFunctions()
|
| /llvm-project-15.0.7/llvm/lib/Bitcode/Writer/ |
| H A D | BitcodeWriter.cpp | 207 assignValueId(CallEdge.first.getGUID()); in ModuleBitcodeWriterBase() 241 return getValueId(VI.getGUID()); in getValueId() 3933 auto VI = Index->getValueInfo(V.getGUID()); in writeModuleLevelReferences() 4087 ValueInfo VI = Index->getValueInfo(F.getGUID()); in writePerModuleGlobalValueSummary() 4240 DefOrUseGUIDs.insert(VI.getGUID()); in writeCombinedGlobalValueSummary() 4265 auto RefValueId = getValueId(RI.getGUID()); in writeCombinedGlobalValueSummary() 4280 return getValueId(VI.getGUID()); in writeCombinedGlobalValueSummary() 4301 auto RefValueId = getValueId(RI.getGUID()); in writeCombinedGlobalValueSummary() 4366 GlobalValue::getGUID(GlobalValue::dropLLVMManglingEscape(S)))) { in writeCombinedGlobalValueSummary() 4380 GlobalValue::getGUID(GlobalValue::dropLLVMManglingEscape(S)))) { in writeCombinedGlobalValueSummary()
|