Lines Matching defs:Caller
80 /// forwardResume - Forward the 'resume' instruction to the caller's landing
139 /// forwardResume - Forward the 'resume' instruction to the caller's landing pad
228 Function *Caller = FirstNewBlock->getParent();
245 for (Function::iterator BB = FirstNewBlock, E = Caller->end(); BB != E; ++BB){
265 /// into the caller, update the specified callgraph to reflect the changes we
273 const Function *Caller = CS.getInstruction()->getParent()->getParent();
276 CallGraphNode *CallerNode = CG[Caller];
278 // Since we inlined some uninlined call sites in the callee into the caller,
279 // add edges from the caller to all of the callees of the callee.
310 // destination. This can also happen if the call graph node of the caller
323 // Update the call graph by deleting the edge from Callee to Caller. We must
324 // do this after the loop above in case Caller and Callee are the same.
336 // If the called function is readonly, then it could not mutate the caller's
370 Function *Caller = TheCall->getParent()->getParent();
373 &*Caller->begin()->begin());
376 Function *MemCpyFn = Intrinsic::getDeclaration(Caller->getParent(),
481 /// block of the caller. This returns false if it is not possible to inline
513 Function *Caller = OrigBB->getParent();
516 // 1. If the caller has no GC, then the callee's GC must be propagated to the
517 // caller.
518 // 2. If the caller has a differing GC, it is invalid to inline.
520 if (!Caller->hasGC())
521 Caller->setGC(CalledFunc->getGC());
522 else if (CalledFunc->getGC() != Caller->getGC())
537 // Find the personality function used by the landing pads of the caller. If it
541 for (Function::const_iterator I = Caller->begin(), E = Caller->end();
560 Function::iterator LastBlock = &Caller->back();
603 CloneAndPruneFunctionInto(Caller, CalledFunc, VMap,
615 fixupLineNumbers(Caller, FirstNewBlock, TheCall);
619 // block for the callee, move them to the entry block of the caller. First
623 BasicBlock::iterator InsertPoint = Caller->begin()->begin();
639 // Keep track of the static allocas that we inline into the caller.
653 Caller->getEntryBlock().getInstList().splice(InsertPoint,
701 Module *M = Caller->getParent();
723 for (Function::iterator BB = FirstNewBlock, E = Caller->end();
742 if (Returns.size() == 1 && std::distance(FirstNewBlock, Caller->end()) == 1) {
747 Caller->getBasicBlockList().pop_back();
811 Caller->getBasicBlockList().splice(AfterCallBB, Caller->getBasicBlockList(),
812 FirstNewBlock, Caller->end());
893 Caller->getBasicBlockList().erase(CalleeEntry);