Home
last modified time | relevance | path

Searched refs:getGUID (Results 1 – 25 of 36) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DFunctionImport.cpp250 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 DSampleProfile.cpp322 {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 DSampleProfileProbe.cpp188 Function::getGUID(FunctionSamples::getCanonicalFnName(F))); in getDesc()
288 uint64_t Guid = Function::getGUID(F.getName()); in instrumentOneFunc()
H A DWholeProgramDevirt.cpp800 !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 DMemProfTest.cpp102 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 DModuleSummaryAnalysis.cpp173 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 DCSPreInliner.h53 return LHS.CalleeSamples->getGUID(LHS.CalleeSamples->getName()) < in operator()
54 RHS.CalleeSamples->getGUID(RHS.CalleeSamples->getName()); in operator()
H A DProfileGenerator.cpp604 Function::getGUID(FunctionProfile->getName())); in getLeafProfileAndAddTotalSamples()
624 Function::getGUID(FunctionProfile->getName())); in getLeafProfileAndAddTotalSamples()
/llvm-project-15.0.7/llvm/examples/OrcV2Examples/LLJITWithThinLTOSummaries/
H A DLLJITWithThinLTOSummaries.cpp80 << "' (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 DModuleSummaryIndex.h180 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 DGlobalValue.h571 static GUID getGUID(StringRef GlobalName) { return MD5Hash(GlobalName); } in getGUID() function
575 GUID getGUID() const { return getGUID(getGlobalIdentifier()); } in getGUID() function
H A DModuleSummaryIndexYAML.h247 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 DLTO.cpp151 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 DThinLTOCodeGenerator.cpp298 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 DMemProf.cpp73 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 DInstrProf.cpp392 MD5FuncMap.emplace_back(Function::getGUID(PGOFuncName), &F); in create()
416 MD5FuncMap.emplace_back(Function::getGUID(OtherFuncName), &F); in create()
H A DRawMemProfReader.cpp427 IndexedMemProfRecord::getGUID(DIFrame.FunctionName); in symbolizeAndFilterStackFrames()
/llvm-project-15.0.7/llvm/lib/IR/
H A DModuleSummaryIndex.cpp365 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 DAsmWriter.cpp1065 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 DPseudoProbePrinter.cpp43 CallerGuid = Function::getGUID(Name); in emitPseudoProbe()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DPseudoProbeInserter.cpp135 return Function::getGUID(Name); in getFuncGUID()
/llvm-project-15.0.7/llvm/include/llvm/ProfileData/
H A DSampleProf.h111 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 DFunctionImportUtils.cpp204 VI = ImportIndex.getValueInfo(GV.getGUID()); in processGlobalForThinLTO()
/llvm-project-15.0.7/llvm/tools/llvm-link/
H A Dllvm-link.cpp364 Entry.insert(F->getGUID()); in importFunctions()
/llvm-project-15.0.7/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp207 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()

12