diff --git a/kernel/utils.h b/kernel/utils.h index e452f380e..4679a23f2 100644 --- a/kernel/utils.h +++ b/kernel/utils.h @@ -140,7 +140,6 @@ template , typename OPS = hash_ops> cla std::vector sorted; std::set> loops; - public: TopoSort() : indirect_cmp(nodes) { analyze_loops = true; @@ -213,6 +212,7 @@ template , typename OPS = hash_ops> cla bool found_loops; std::vector nodes; const IndirectCmp indirect_cmp; + void sort_worker(const int root_index, std::vector &marked_cells, std::vector &active_cells, std::vector &active_stack) { if (active_cells[root_index]) {