1 //===--------------------- PipelinePrinter.cpp ------------------*- 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 /// \file
9 ///
10 /// This file implements the PipelinePrinter interface.
11 ///
12 //===----------------------------------------------------------------------===//
13 
14 #include "PipelinePrinter.h"
15 #include "Views/View.h"
16 
17 namespace llvm {
18 namespace mca {
19 
20 void PipelinePrinter::printReport(llvm::raw_ostream &OS) const {
21   for (const auto &V : Views)
22     V->printView(OS);
23 }
24 } // namespace mca.
25 } // namespace llvm
26