Lines Matching defs:InlineCost
1 //===- InlineCost.h - Cost analysis for inliner -----------------*- C++ -*-===//
44 /// InlineCost - Represent the cost of inlining a function. This
49 class InlineCost {
73 InlineCost(int C, int T) {
75 assert(getCost() == C && "Cost exceeds InlineCost precision");
78 static InlineCost get(int Cost) { return InlineCost(Cost, Value); }
79 static InlineCost getAlways() { return InlineCost(0, Always); }
80 static InlineCost getNever() { return InlineCost(0, Never); }
87 /// an error to call this on an "always" or "never" InlineCost.
89 assert(getType() == Value && "Invalid access of InlineCost");
143 InlineCost getInlineCost(CallSite CS,
150 InlineCost getInlineCost(CallSite CS,
163 InlineCost getSpecializationCost(Function *Callee,