1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html.
5 // Copyright (C) 2018-2019 Intel Corporation
8 #ifndef OPENCV_GAPI_COMPILER_PASSES_HELPERS_HPP
9 #define OPENCV_GAPI_COMPILER_PASSES_HELPERS_HPP
11 // FIXME: DROP THIS and REUSE ADE utilities
12 // (which serve as passes already but are not exposed as standalone functions)
16 #include <ade/passes/pass_base.hpp>
17 #include <ade/node.hpp> // FIXME: Forward declarations instead?
18 #include <ade/graph.hpp>
22 namespace pass_helpers {
24 bool hasCycles(const ade::Graph &graph);
25 std::vector<ade::NodeHandle> topoSort(const ade::Graph &graph);
27 } // namespace pass_helpers
31 #endif // OPENCV_GAPI_COMPILER_PASSES_HELPERS_HPP