Home | History | Annotate | Download | only in IPO

Lines Matching defs:Caller

73 /// available from other  functions inlined into the caller.  If we are able to
80 Function *Caller = CS.getCaller();
88 // calling function, then bump up the caller's stack protection level.
90 Caller->addFnAttr(Attribute::StackProtectReq);
92 !Caller->hasFnAttr(Attribute::StackProtectReq))
93 Caller->addFnAttr(Attribute::StackProtect);
201 Function *Caller = CS.getCaller();
202 if (Caller && !Caller->isDeclaration() &&
203 Caller->hasFnAttr(Attribute::OptimizeForSize) &&
234 Function *Caller = CS.getCaller();
245 // Try to detect the case where the current inlining candidate caller
251 if (Caller->hasLocalLinkage()) {
258 for (Value::use_iterator I = Caller->use_begin(), E =Caller->use_end();
262 // If this isn't a call to Caller (it could be some other sort
263 // of reference) skip it. Such references will prevent the caller
265 if (!CS2 || CS2.getCalledFunction() != Caller) {
293 // If all outer calls to Caller would get inlined, the cost for the last
294 // one is set very low by getInlineCost, in anticipation that Caller will
296 // is only one caller of Caller.
297 if (callerWillBeRemoved && Caller->use_begin() != Caller->use_end())
404 Function *Caller = CS.getCaller();
414 // Update the call graph by deleting the edge from Callee to Caller.
415 CG[Caller]->removeCallEdgeFor(CS);
419 growCachedCostInfo(Caller, NULL);
462 growCachedCostInfo(Caller, Callee);