Lines Matching full:caller
43 STATISTIC(NumCallerCallersAnalyzed, "Number of caller-callers analyzed");
76 /// calling function, then bump up the caller's stack protection level.
77 static void AdjustCallerSSPLevel(Function *Caller, Function *Callee) {
84 AttributeSet OldSSPAttr = AttributeSet::get(Caller->getContext(),
87 AttributeSet CallerAttr = Caller->getAttributes(),
92 Caller->removeAttributes(AttributeSet::FunctionIndex, OldSSPAttr);
93 Caller->addFnAttr(Attribute::StackProtectReq);
98 Caller->removeAttributes(AttributeSet::FunctionIndex, OldSSPAttr);
99 Caller->addFnAttr(Attribute::StackProtectStrong);
106 Caller->addFnAttr(Attribute::StackProtect);
114 /// available from other functions inlined into the caller. If we are able to
122 Function *Caller = CS.getCaller();
129 AdjustCallerSSPLevel(Caller, Callee);
261 Function *Caller = CS.getCaller();
262 bool OptSize = Caller && !Caller->isDeclaration() &&
263 Caller->getAttributes().hasAttribute(AttributeSet::FunctionIndex,
270 // and the caller does not need to minimize its size.
276 && !Caller->getAttributes().hasAttribute(AttributeSet::FunctionIndex,
300 Function *Caller = CS.getCaller();
308 // Try to detect the case where the current inlining candidate caller (call
324 if (Caller->hasLocalLinkage() ||
325 Caller->getLinkage() == GlobalValue::LinkOnceODRLinkage) {
330 bool callerWillBeRemoved = Caller->hasLocalLinkage();
333 for (Value::use_iterator I = Caller->use_begin(), E =Caller->use_end();
337 // If this isn't a call to Caller (it could be some other sort
338 // of reference) skip it. Such references will prevent the caller
340 if (!CS2 || CS2.getCalledFunction() != Caller) {
362 // If all outer calls to Caller would get inlined, the cost for the last
363 // one is set very low by getInlineCost, in anticipation that Caller will
365 // is only one caller of Caller.
366 if (callerWillBeRemoved && Caller->use_begin() != Caller->use_end())
472 Function *Caller = CS.getCaller();
482 // Update the call graph by deleting the edge from Callee to Caller.
483 CG[Caller]->removeCallEdgeFor(CS);