Home
last modified time | relevance | path

Searched refs:TargetFunction (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DIndirectCallPromotion.cpp124 Function *TargetFunction; member
127 PromotionCandidate(Function *F, uint64_t C) : TargetFunction(F), Count(C) {} in PromotionCandidate()
214 Function *TargetFunction = Symtab->getFunction(Target); in getPromotionCandidatesForCallSite() local
215 if (TargetFunction == nullptr || TargetFunction->isDeclaration()) { in getPromotionCandidatesForCallSite()
226 if (!isLegalToPromote(CB, TargetFunction, &Reason)) { in getPromotionCandidatesForCallSite()
232 << NV("TargetFunction", TargetFunction) << " with count of " in getPromotionCandidatesForCallSite()
238 Ret.push_back(PromotionCandidate(TargetFunction, Count)); in getPromotionCandidatesForCallSite()
286 pgo::promoteIndirectCall(CB, C.TargetFunction, Count, TotalCount, SamplePGO, in tryToPromote()
/llvm-project-15.0.7/bolt/lib/Passes/
H A DInliner.cpp420 BinaryFunction *TargetFunction = in inlineCallsInFunction() local
422 if (!TargetFunction || EntryID != 0) { in inlineCallsInFunction()
428 if (TargetFunction == &Function) { in inlineCallsInFunction()
433 auto IInfo = InliningCandidates.find(TargetFunction); in inlineCallsInFunction()
453 if (!opts::InlineAll && !opts::mustConsider(*TargetFunction)) { in inlineCallsInFunction()
461 LLVM_DEBUG(dbgs() << "BOLT-DEBUG: inlining call to " << *TargetFunction in inlineCallsInFunction()
467 std::tie(BB, InstIt) = inlineCall(*BB, InstIt, *TargetFunction); in inlineCallsInFunction()
477 TargetFunction->adjustExecutionCount(BB->getKnownExecutionCount()); in inlineCallsInFunction()
/llvm-project-15.0.7/bolt/lib/Core/
H A DBinaryContext.cpp1125 if (TargetFunction.isParentFragment(&Function)) in registerFragment()
1127 TargetFunction.addParentFragment(Function); in registerFragment()
1128 Function.addFragment(TargetFunction); in registerFragment()
1130 TargetFunction.setSimple(false); in registerFragment()
1157 if (TargetFunction) in handleAArch64Veneer()
1242 BinaryFunction *TargetFunction = in processInterproceduralReferences() local
1244 if (&Function == TargetFunction) in processInterproceduralReferences()
1247 if (TargetFunction) { in processInterproceduralReferences()
1248 if (TargetFunction->isFragment() && in processInterproceduralReferences()
1290 if (TargetFunction && TargetFunction->isSimple()) { in processInterproceduralReferences()
[all …]
H A DBinaryFunction.cpp1463 BinaryFunction *TargetFunction = BC.getFunctionForSymbol(TargetSymbol); in scanExternalRefs() local
1464 if (!TargetFunction) in scanExternalRefs()
1467 return ignoreFunctionRef(*TargetFunction); in scanExternalRefs()
1490 BinaryFunction *TargetFunction = in scanExternalRefs() local
1492 if (TargetFunction && !ignoreFunctionRef(*TargetFunction)) { in scanExternalRefs()
1494 TargetAddress - TargetFunction->getAddress(); in scanExternalRefs()
1496 ? TargetFunction->addEntryPointAtOffset(FunctionOffset) in scanExternalRefs()
1497 : TargetFunction->getSymbol(); in scanExternalRefs()
/llvm-project-15.0.7/bolt/include/bolt/Core/
H A DBinaryContext.h901 bool registerFragment(BinaryFunction &TargetFunction,
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DSelectionDAG.h1539 Function **TargetFunction = nullptr);