Matt Davis | d8c387b | 2018-06-25 16:53:00 +0000 | [diff] [blame] | 1 | //===--------------------- PipelinePrinter.cpp ------------------*- C++ -*-===// |
Andrea Di Biagio | 29b29cc | 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 | d8c387b | 2018-06-25 16:53:00 +0000 | [diff] [blame] | 11 | /// This file implements the PipelinePrinter interface. |
Andrea Di Biagio | 29b29cc | 2018-03-08 13:05:02 +0000 | [diff] [blame] | 12 | /// |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
Matt Davis | d8c387b | 2018-06-25 16:53:00 +0000 | [diff] [blame] | 15 | #include "PipelinePrinter.h" |
Matt Davis | 444bd81 | 2018-08-24 20:24:53 +0000 | [diff] [blame] | 16 | #include "Views/View.h" |
Andrea Di Biagio | 29b29cc | 2018-03-08 13:05:02 +0000 | [diff] [blame] | 17 | |
Fangrui Song | 467c307 | 2018-10-30 15:56:08 +0000 | [diff] [blame] | 18 | namespace llvm { |
Andrea Di Biagio | 29b29cc | 2018-03-08 13:05:02 +0000 | [diff] [blame] | 19 | namespace mca { |
| 20 | |
Matt Davis | d8c387b | 2018-06-25 16:53:00 +0000 | [diff] [blame] | 21 | void PipelinePrinter::printReport(llvm::raw_ostream &OS) const { |
Andrea Di Biagio | 6b07e2f | 2018-03-08 16:08:43 +0000 | [diff] [blame] | 22 | for (const auto &V : Views) |
| 23 | V->printView(OS); |
Andrea Di Biagio | 29b29cc | 2018-03-08 13:05:02 +0000 | [diff] [blame] | 24 | } |
Andrea Di Biagio | 29b29cc | 2018-03-08 13:05:02 +0000 | [diff] [blame] | 25 | } // namespace mca. |
Fangrui Song | 467c307 | 2018-10-30 15:56:08 +0000 | [diff] [blame] | 26 | } // namespace llvm |