Lines Matching refs:IC

200     const ReplayInlinerSettings &ReplaySettings, InlineContext IC) {  in tryCreate()  argument
205 Advisor.reset(new DefaultInlineAdvisor(M, FAM, Params, IC)); in tryCreate()
211 /* EmitRemarks =*/true, IC); in tryCreate()
241 shouldBeDeferred(Function *Caller, InlineCost IC, int &TotalSecondaryCost, in shouldBeDeferred() argument
249 if (IC.getCost() <= 0) in shouldBeDeferred()
269 int CandidateCost = IC.getCost() - 1; in shouldBeDeferred()
319 return TotalSecondaryCost < IC.getCost(); in shouldBeDeferred()
321 int TotalCost = TotalSecondaryCost + IC.getCost() * NumCallerUsers; in shouldBeDeferred()
322 int Allowance = IC.getCost() * InlineDeferralScale; in shouldBeDeferred()
332 RemarkT &operator<<(RemarkT &&R, const InlineCost &IC) { in operator <<() argument
334 if (IC.isAlways()) { in operator <<()
336 } else if (IC.isNever()) { in operator <<()
339 R << "(cost=" << ore::NV("Cost", IC.getCost()) in operator <<()
340 << ", threshold=" << ore::NV("Threshold", IC.getThreshold()) << ")"; in operator <<()
342 if (const char *Reason = IC.getReason()) in operator <<()
348 std::string llvm::inlineCostStr(const InlineCost &IC) { in inlineCostStr() argument
351 Remark << IC; in inlineCostStr()
373 InlineCost IC = GetInlineCost(CB); in shouldInline() local
378 if (IC.isAlways()) { in shouldInline()
379 LLVM_DEBUG(dbgs() << " Inlining " << inlineCostStr(IC) in shouldInline()
381 return IC; in shouldInline()
384 if (!IC) { in shouldInline()
385 LLVM_DEBUG(dbgs() << " NOT Inlining " << inlineCostStr(IC) in shouldInline()
387 if (IC.isNever()) { in shouldInline()
392 << "' because it should never be inlined " << IC; in shouldInline()
399 << IC; in shouldInline()
402 setInlineRemark(CB, inlineCostStr(IC)); in shouldInline()
408 shouldBeDeferred(Caller, IC, TotalSecondaryCost, GetInlineCost)) { in shouldInline()
410 << " Cost = " << IC.getCost() in shouldInline()
423 LLVM_DEBUG(dbgs() << " Inlining " << inlineCostStr(IC) << ", Call: " << CB in shouldInline()
425 return IC; in shouldInline()
502 const Function &Callee, const Function &Caller, const InlineCost &IC, in emitInlinedIntoBasedOnCost() argument
505 ORE, DLoc, Block, Callee, Caller, IC.isAlways(), in emitInlinedIntoBasedOnCost()
509 Remark << " with " << IC; in emitInlinedIntoBasedOnCost()
515 Optional<InlineContext> IC) in InlineAdvisor() argument
516 : M(M), FAM(FAM), IC(IC), in InlineAdvisor()
517 AnnotatedInlinePassName((IC && AnnotateInlinePhase) in InlineAdvisor()
518 ? llvm::AnnotateInlinePassName(*IC) in InlineAdvisor()
578 std::string llvm::AnnotateInlinePassName(InlineContext IC) { in AnnotateInlinePassName() argument
579 return std::string(getLTOPhase(IC.LTOPhase)) + "-" + in AnnotateInlinePassName()
580 std::string(getInlineAdvisorContext(IC.Pass)); in AnnotateInlinePassName()