Home | History | Annotate | Download | only in IPO

Lines Matching refs:Caller

42 STATISTIC(NumCallerCallersAnalyzed, "Number of caller-callers analyzed");
79 /// available from other functions inlined into the caller. If we are able to
86 Function *Caller = CS.getCaller();
94 // calling function, then bump up the caller's stack protection level.
96 Caller->addFnAttr(Attribute::StackProtectReq);
98 !Caller->hasFnAttr(Attribute::StackProtectReq))
99 Caller->addFnAttr(Attribute::StackProtect);
207 Function *Caller = CS.getCaller();
208 if (Caller && !Caller->isDeclaration() &&
209 Caller->hasFnAttr(Attribute::OptimizeForSize) &&
239 Function *Caller = CS.getCaller();
247 // Try to detect the case where the current inlining candidate caller (call
263 if (Caller->hasLocalLinkage() ||
264 Caller->getLinkage() == GlobalValue::LinkOnceODRLinkage) {
269 bool callerWillBeRemoved = Caller->hasLocalLinkage();
272 for (Value::use_iterator I = Caller->use_begin(), E =Caller->use_end();
276 // If this isn't a call to Caller (it could be some other sort
277 // of reference) skip it. Such references will prevent the caller
279 if (!CS2 || CS2.getCalledFunction() != Caller) {
301 // If all outer calls to Caller would get inlined, the cost for the last
302 // one is set very low by getInlineCost, in anticipation that Caller will
304 // is only one caller of Caller.
305 if (callerWillBeRemoved && Caller->use_begin() != Caller->use_end())
410 Function *Caller = CS.getCaller();
420 // Update the call graph by deleting the edge from Callee to Caller.
421 CG[Caller]->removeCallEdgeFor(CS);