Searched refs:funcs_to_visit (Results 1 – 2 of 2) sorted by relevance
53 [&reachable_funcs](Region& src, SmallVectorImpl<FuncOp>& funcs_to_visit) { in CollectReachableFunctions() argument54 src.walk([&reachable_funcs, &funcs_to_visit](CallOpInterface call_op) { in CollectReachableFunctions()57 funcs_to_visit.push_back(func); in CollectReachableFunctions()61 SmallVector<FuncOp, 4> funcs_to_visit; in CollectReachableFunctions() local62 collect_reachable_funcs(region, funcs_to_visit); in CollectReachableFunctions()64 while (!funcs_to_visit.empty()) { in CollectReachableFunctions()66 for (FuncOp func_to_visit : funcs_to_visit) { in CollectReachableFunctions()71 funcs_to_visit.swap(new_funcs_to_visit); in CollectReachableFunctions()
141 SmallVector<FuncOp, 4> funcs_to_visit; in GetFunctionsToRewrite() local154 funcs_to_visit.push_back(func); in GetFunctionsToRewrite()158 while (!funcs_to_visit.empty()) { in GetFunctionsToRewrite()160 for (FuncOp& func : funcs_to_visit) { in GetFunctionsToRewrite()194 funcs_to_visit.swap(new_funcs_to_visit); in GetFunctionsToRewrite()