Blame view

3rdparty/opencv-4.5.4/modules/gapi/src/compiler/passes/helpers.hpp 880 Bytes
f4334277   Hu Chunming   提交3rdparty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  // This file is part of OpenCV project.
  // It is subject to the license terms in the LICENSE file found in the top-level directory
  // of this distribution and at http://opencv.org/license.html.
  //
  // Copyright (C) 2018 Intel Corporation
  
  
  #ifndef OPENCV_GAPI_COMPILER_PASSES_HELPERS_HPP
  #define OPENCV_GAPI_COMPILER_PASSES_HELPERS_HPP
  
  // FIXME: DROP THIS and REUSE ADE utilities
  // (which serve as passes already but are not exposed as standalone functions)
  
  #include <vector>
  
  #include <ade/passes/pass_base.hpp>
  #include <ade/node.hpp> // FIXME: Forward declarations instead?
  #include <ade/graph.hpp>
  
  namespace cv {
  namespace gimpl {
  namespace pass_helpers {
  
  bool hasCycles(const ade::Graph &graph);
  std::vector<ade::NodeHandle> topoSort(const ade::Graph &graph);
  
  } // namespace pass_helpers
  } // namespace gimpl
  } // name
  
  #endif // OPENCV_GAPI_COMPILER_PASSES_HELPERS_HPP