Lines Matching defs:calls

307                            SmallVectorImpl<ResolvedCall> &calls,
332 calls.emplace_back(call, sourceNode, targetNode);
395 collectCallOps(inlinedBlocks, node, cg, symbolTable, calls,
413 SmallVector<ResolvedCall, 8> calls;
429 /// Attempt to inline calls within the given scc, and run simplifications,
431 /// devirtualized calls. Returns failure if there was a fatal error during
456 /// Attempt to inline calls within the given scc. This function returns
457 /// success if any calls were inlined, failure otherwise.
475 // model, and in future iterations may devirtualize new calls.
582 /// Attempt to inline calls within the given scc. This function returns
583 /// success if any calls were inlined, failure otherwise.
588 auto &calls = inlinerIface.calls;
593 // Collect all of the direct calls within the nodes of the current SCC. We
600 // Don't collect calls if the node is already dead.
605 inlinerIface.symbolTable, calls,
615 std::vector<InlineHistoryT> callHistory(calls.size(), InlineHistoryT{});
618 llvm::dbgs() << "* Inliner: Initial calls in SCC are: {\n";
619 for (unsigned i = 0, e = calls.size(); i < e; ++i)
620 llvm::dbgs() << " " << i << ". " << calls[i].call << ",\n";
625 // here as more calls may be added during inlining.
627 for (unsigned i = 0; i < calls.size(); ++i) {
628 if (deadNodes.contains(calls[i].sourceNode))
630 ResolvedCall it = calls[i];
646 unsigned prevSize = calls.size();
677 for (unsigned k = prevSize; k != calls.size(); ++k) {
679 LLVM_DEBUG(llvm::dbgs() << "* new call " << k << " {" << calls[i].call
704 calls.clear();
710 // Don't allow inlining terminator calls. We currently don't support this