| 1002 | } |
| 1003 | |
| 1004 | bool IRContext::ProcessEntryPointCallTree(ProcessFunction& pfn) { |
| 1005 | // Collect all of the entry points as the roots. |
| 1006 | std::queue<uint32_t> roots; |
| 1007 | for (auto& e : module()->entry_points()) { |
| 1008 | roots.push(e.GetSingleWordInOperand(kEntryPointFunctionIdInIdx)); |
| 1009 | } |
| 1010 | return ProcessCallTreeFromRoots(pfn, &roots); |
| 1011 | } |
| 1012 | |
| 1013 | bool IRContext::ProcessReachableCallTree(ProcessFunction& pfn) { |
| 1014 | std::queue<uint32_t> roots; |