Publishing 2019 R1 content
[platform/upstream/dldt.git] / inference-engine / thirdparty / fluid / modules / gapi / src / compiler / passes / helpers.hpp
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.
4 //
5 // Copyright (C) 2018-2019 Intel Corporation
6
7
8 #ifndef OPENCV_GAPI_COMPILER_PASSES_HELPERS_HPP
9 #define OPENCV_GAPI_COMPILER_PASSES_HELPERS_HPP
10
11 // FIXME: DROP THIS and REUSE ADE utilities
12 // (which serve as passes already but are not exposed as standalone functions)
13
14 #include <vector>
15
16 #include <ade/passes/pass_base.hpp>
17 #include <ade/node.hpp> // FIXME: Forward declarations instead?
18 #include <ade/graph.hpp>
19
20 namespace cv {
21 namespace gimpl {
22 namespace pass_helpers {
23
24 bool hasCycles(const ade::Graph &graph);
25 std::vector<ade::NodeHandle> topoSort(const ade::Graph &graph);
26
27 } // namespace pass_helpers
28 } // namespace gimpl
29 } // name
30
31 #endif // OPENCV_GAPI_COMPILER_PASSES_HELPERS_HPP