Matt Davis | dea343d | 2018-06-25 16:53:00 +0000 | [diff] [blame] | 1 | //===--------------------- PipelinePrinter.cpp ------------------*- C++ -*-===// |
Andrea Di Biagio | 3a6b092 | 2018-03-08 13:05:02 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | /// \file |
| 10 | /// |
Matt Davis | dea343d | 2018-06-25 16:53:00 +0000 | [diff] [blame] | 11 | /// This file implements the PipelinePrinter interface. |
Andrea Di Biagio | 3a6b092 | 2018-03-08 13:05:02 +0000 | [diff] [blame] | 12 | /// |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
Matt Davis | dea343d | 2018-06-25 16:53:00 +0000 | [diff] [blame] | 15 | #include "PipelinePrinter.h" |
Matt Davis | 10aa09f | 2018-08-24 20:24:53 +0000 | [diff] [blame^] | 16 | #include "Views/View.h" |
Andrea Di Biagio | 3a6b092 | 2018-03-08 13:05:02 +0000 | [diff] [blame] | 17 | |
| 18 | namespace mca { |
| 19 | |
| 20 | using namespace llvm; |
| 21 | |
Matt Davis | dea343d | 2018-06-25 16:53:00 +0000 | [diff] [blame] | 22 | void PipelinePrinter::printReport(llvm::raw_ostream &OS) const { |
Andrea Di Biagio | 8af3fe8 | 2018-03-08 16:08:43 +0000 | [diff] [blame] | 23 | for (const auto &V : Views) |
| 24 | V->printView(OS); |
Andrea Di Biagio | 3a6b092 | 2018-03-08 13:05:02 +0000 | [diff] [blame] | 25 | } |
Andrea Di Biagio | 3a6b092 | 2018-03-08 13:05:02 +0000 | [diff] [blame] | 26 | } // namespace mca. |