Searched refs:CostBenefit (Results 1 – 3 of 3) sorted by relevance
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | InlineCost.h | 106 std::optional<CostBenefitPair> CostBenefit; variable 111 std::optional<CostBenefitPair> CostBenefit = std::nullopt) 114 CostBenefit(CostBenefit) { in Cost() 127 std::optional<CostBenefitPair> CostBenefit = std::nullopt) { 128 return InlineCost(AlwaysInlineCost, 0, 0, Reason, CostBenefit); 132 std::optional<CostBenefitPair> CostBenefit = std::nullopt) { 133 return InlineCost(NeverInlineCost, 0, 0, Reason, CostBenefit); 163 std::optional<CostBenefitPair> getCostBenefit() const { return CostBenefit; } in getCostBenefit()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | InlineOrder.cpp | 25 enum class InlinePriorityMode : int { Size, Cost, CostBenefit, ML }; enumerator 34 clEnumValN(InlinePriorityMode::CostBenefit, "cost-benefit", 122 CostBenefit = IC.getCostBenefit(); in CostBenefitPriority() 157 bool P1HasCB = P1.CostBenefit.has_value(); in isMoreDesirable() 158 bool P2HasCB = P2.CostBenefit.has_value(); in isMoreDesirable() 167 APInt LHS = P1.CostBenefit->getBenefit() * P2.CostBenefit->getCost(); in isMoreDesirable() 168 APInt RHS = P2.CostBenefit->getBenefit() * P1.CostBenefit->getCost(); in isMoreDesirable() 179 std::optional<CostBenefitPair> CostBenefit; member in __anona7cbcc7e0111::CostBenefitPriority 301 case InlinePriorityMode::CostBenefit: in getDefaultInlineOrder()
|
H A D | InlineCost.cpp | 600 std::optional<CostBenefitPair> CostBenefit; member in __anon463f3bdb0111::InlineCostCallAnalyzer 941 CostBenefit.emplace(APInt(128, Size), CycleSavings); in costBenefitAnalysis() 1141 std::optional<CostBenefitPair> getCostBenefitPair() { return CostBenefit; } in getCostBenefitPair()
|