blob: 90d46807599693707066fe68ecc3e0d060cbc4a2 [file] [log] [blame]
Matt Davisdea343d2018-06-25 16:53:00 +00001//===--------------------- PipelinePrinter.cpp ------------------*- C++ -*-===//
Andrea Di Biagio3a6b0922018-03-08 13:05:02 +00002//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// 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
Andrea Di Biagio3a6b0922018-03-08 13:05:02 +00006//
7//===----------------------------------------------------------------------===//
8/// \file
9///
Matt Davisdea343d2018-06-25 16:53:00 +000010/// This file implements the PipelinePrinter interface.
Andrea Di Biagio3a6b0922018-03-08 13:05:02 +000011///
12//===----------------------------------------------------------------------===//
13
Matt Davisdea343d2018-06-25 16:53:00 +000014#include "PipelinePrinter.h"
Matt Davis10aa09f2018-08-24 20:24:53 +000015#include "Views/View.h"
Andrea Di Biagio3a6b0922018-03-08 13:05:02 +000016
Fangrui Song5a8fd652018-10-30 15:56:08 +000017namespace llvm {
Andrea Di Biagio3a6b0922018-03-08 13:05:02 +000018namespace mca {
19
Matt Davisdea343d2018-06-25 16:53:00 +000020void PipelinePrinter::printReport(llvm::raw_ostream &OS) const {
Andrea Di Biagio8af3fe82018-03-08 16:08:43 +000021 for (const auto &V : Views)
22 V->printView(OS);
Andrea Di Biagio3a6b0922018-03-08 13:05:02 +000023}
Andrea Di Biagio3a6b0922018-03-08 13:05:02 +000024} // namespace mca.
Fangrui Song5a8fd652018-10-30 15:56:08 +000025} // namespace llvm