Lines Matching refs:Function
71 /// This function also does some basic book-keeping to update the IR. The
79 Function *Callee = CS.getCalledFunction();
80 Function *Caller = CS.getCaller();
82 // Try to inline the function. Get the list of static allocas that were
87 // If the inlined function had a higher stack protection level than the
88 // calling function, then bump up the caller's stack protection level.
96 // have already inlined other allocas through other calls into this function,
153 // function. Also, AllocasForType can be empty of course!
158 // The available alloca has to be in the right function, not in some other
159 // function in this SCC.
163 // If the inlined function already uses this alloca then we can't reuse
187 // already, remember that this alloca came from an inlined function and mark
201 Function *Caller = CS.getCaller();
208 Function *Callee = CS.getCalledFunction();
234 Function *Caller = CS.getCaller();
246 // (call it B) is a static function and is an inlining candidate elsewhere,
316 /// indicates an inline history that includes the specified function.
317 static bool InlineHistoryIncludes(Function *F, int InlineHistoryID,
318 const SmallVectorImpl<std::pair<Function*, int> > &InlineHistory) {
334 SmallPtrSet<Function*, 8> SCCFunctions;
337 Function *F = (*I)->getFunction();
351 SmallVector<std::pair<Function*, int>, 8> InlineHistory;
354 Function *F = (*I)->getFunction();
357 for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB)
365 // If this is a direct call to an external function, we can never inline
377 // If there are no calls in this function, exit early.
385 if (Function *F = CallSites[i].first.getCalledFunction())
404 Function *Caller = CS.getCaller();
405 Function *Callee = CS.getCalledFunction();
407 // If this call site is dead and it is to a readonly function, we should
424 // If this call site was obtained by inlining another function, verify
425 // that the include path for the function did not include the callee
426 // itself. If so, we'd be recursively inlining the same function,
435 // If the policy determines that we should inline this function,
440 // Attempt to inline the function.
446 // If inlining this function gave us any new call sites, throw them
465 // If we inlined or deleted the last possible call site to the function,
466 // delete the function body now.
471 // The function may be apparently dead, but if there are indirect
475 DEBUG(dbgs() << " -> Deleting dead function: "
491 // move a call site to a function in this SCC before the
518 SmallPtrSet<const Function *, 16> *DNR) {
528 Function *F = CGN->getFunction();
530 // If the only remaining users of the function are dead constants, remove
542 // Remove any call graph edges from the function to its callees.
545 // Remove any edges from the external node to the function's call graph