MLIR  15.0.0git
ViewOpGraph.h
Go to the documentation of this file.
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 /// Creates a pass to print op graphs.
23 std::unique_ptr<Pass>
24 createPrintOpGraphPass(raw_ostream &os = llvm::errs());
25 
26 } // namespace mlir
27 
28 #endif // MLIR_TRANSFORMS_VIEWOPGRAPH_H_
TODO: Remove this file when SCCP and integer range analysis have been ported to the new framework...
std::unique_ptr< Pass > createPrintOpGraphPass(raw_ostream &os=llvm::errs())
Creates a pass to print op graphs.