2018-06-25 16:53:00 +00:00
|
|
|
//===--------------------- PipelinePrinter.cpp ------------------*- C++ -*-===//
|
2018-03-08 13:05:02 +00:00
|
|
|
//
|
2019-01-19 08:50:56 +00:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2018-03-08 13:05:02 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
/// \file
|
|
|
|
///
|
2018-06-25 16:53:00 +00:00
|
|
|
/// This file implements the PipelinePrinter interface.
|
2018-03-08 13:05:02 +00:00
|
|
|
///
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2018-06-25 16:53:00 +00:00
|
|
|
#include "PipelinePrinter.h"
|
2018-08-24 20:24:53 +00:00
|
|
|
#include "Views/View.h"
|
2018-03-08 13:05:02 +00:00
|
|
|
|
2018-10-30 15:56:08 +00:00
|
|
|
namespace llvm {
|
2018-03-08 13:05:02 +00:00
|
|
|
namespace mca {
|
|
|
|
|
2018-06-25 16:53:00 +00:00
|
|
|
void PipelinePrinter::printReport(llvm::raw_ostream &OS) const {
|
2018-03-08 16:08:43 +00:00
|
|
|
for (const auto &V : Views)
|
|
|
|
V->printView(OS);
|
2018-03-08 13:05:02 +00:00
|
|
|
}
|
|
|
|
} // namespace mca.
|
2018-10-30 15:56:08 +00:00
|
|
|
} // namespace llvm
|