CIRCT  19.0.0git
DebugAnalysis.h
Go to the documentation of this file.
1 //===- DebugAnalysis.h ----------------------------------------------------===//
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 #ifndef CIRCT_ANALYSIS_DEBUGANALYSIS_H
10 #define CIRCT_ANALYSIS_DEBUGANALYSIS_H
11 
12 #include "circt/Support/LLVM.h"
13 #include "mlir/IR/Value.h"
14 #include "llvm/ADT/DenseSet.h"
15 
16 namespace mlir {
17 class Operation;
18 class OpOperand;
19 } // namespace mlir
20 
21 namespace circt {
22 
23 /// Identify operations and values that are only used for debug info.
24 struct DebugAnalysis {
25  DebugAnalysis(Operation *op);
26 
27  DenseSet<Operation *> debugOps;
28  DenseSet<Value> debugValues;
29  DenseSet<OpOperand *> debugOperands;
30 };
31 
32 } // namespace circt
33 
34 #endif // CIRCT_ANALYSIS_DEBUGANALYSIS_H
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
Definition: DebugAnalysis.h:21
Identify operations and values that are only used for debug info.
Definition: DebugAnalysis.h:24
DebugAnalysis(Operation *op)
DenseSet< OpOperand * > debugOperands
Definition: DebugAnalysis.h:29
DenseSet< Operation * > debugOps
Definition: DebugAnalysis.h:27
DenseSet< Value > debugValues
Definition: DebugAnalysis.h:28