blob: 6fc78a5112b52b8d6ea752faf3cdd9b6a96e39ea [file] [log] [blame]
Andrea Di Biagio3a6b0922018-03-08 13:05:02 +00001//===--------------------- BackendPrinter.cpp -------------------*- C++ -*-===//
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///
11/// This file implements the BackendPrinter interface.
12///
13//===----------------------------------------------------------------------===//
14
15#include "BackendPrinter.h"
Andrea Di Biagio8af3fe82018-03-08 16:08:43 +000016#include "View.h"
Andrea Di Biagio3a6b0922018-03-08 13:05:02 +000017#include "llvm/CodeGen/TargetSchedule.h"
18
19namespace mca {
20
21using namespace llvm;
22
Andrea Di Biagio8af3fe82018-03-08 16:08:43 +000023void BackendPrinter::printReport(llvm::raw_ostream &OS) const {
Andrea Di Biagio8af3fe82018-03-08 16:08:43 +000024 for (const auto &V : Views)
25 V->printView(OS);
Andrea Di Biagio3a6b0922018-03-08 13:05:02 +000026}
Andrea Di Biagio3a6b0922018-03-08 13:05:02 +000027} // namespace mca.