1 | //===- ViewOpGraph.h - View/write op graphviz graphs ------------*- C++ -*-===// |
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | // |
9 | // Defines interface to produce Graphviz outputs of MLIR op within block. |
10 | // |
11 | //===----------------------------------------------------------------------===// |
12 | |
13 | #ifndef MLIR_TRANSFORMS_VIEWOPGRAPH_H_ |
14 | #define MLIR_TRANSFORMS_VIEWOPGRAPH_H_ |
15 | |
16 | #include "mlir/Support/LLVM.h" |
17 | #include "llvm/Support/raw_ostream.h" |
18 | |
19 | namespace mlir { |
20 | class Pass; |
21 | |
22 | #define GEN_PASS_DECL_VIEWOPGRAPH |
23 | #include "mlir/Transforms/Passes.h.inc" |
24 | |
25 | /// Creates a pass to print op graphs. |
26 | std::unique_ptr<Pass> createPrintOpGraphPass(raw_ostream &os = llvm::errs()); |
27 | |
28 | } // namespace mlir |
29 | |
30 | #endif // MLIR_TRANSFORMS_VIEWOPGRAPH_H_ |
31 | |