1 //===- ConstantPropagationAnalysis.cpp - Constant propagation analysis ----===//
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 #include "mlir/Analysis/DataFlow/ConstantPropagationAnalysis.h"
10 
11 using namespace mlir;
12 using namespace mlir::dataflow;
13 
14 //===----------------------------------------------------------------------===//
15 // ConstantValue
16 //===----------------------------------------------------------------------===//
17 
18 void ConstantValue::print(raw_ostream &os) const {
19   if (constant)
20     return constant.print(os);
21   os << "<NO VALUE>";
22 }
23