Lines Matching refs:worklist
279 // Worklist: worklist for dataflow analysis.
284 SmallVector<const CFGBlock *, 20> worklist;
295 unsigned OldWorklistSize = worklist.size();
301 worklist.push_back(Successor);
304 if (OldWorklistSize == 0 || OldWorklistSize == worklist.size())
307 // Rotate the newly added blocks to the start of the worklist so that it forms
308 // a proper queue when we pop off the end of the worklist.
309 std::rotate(worklist.begin(), worklist.begin() + OldWorklistSize,
310 worklist.end());
314 if (worklist.empty())
316 const CFGBlock *b = worklist.back();
317 worklist.pop_back();
699 DataflowWorklist worklist(cfg);
701 worklist.enqueueSuccessors(&cfg.getEntry());
705 while (const CFGBlock *block = worklist.dequeue()) {
710 worklist.enqueueSuccessors(block);