summaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-mca/PipelinePrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-mca/PipelinePrinter.cpp')
-rw-r--r--llvm/tools/llvm-mca/PipelinePrinter.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/llvm/tools/llvm-mca/PipelinePrinter.cpp b/llvm/tools/llvm-mca/PipelinePrinter.cpp
new file mode 100644
index 000000000000..90d468075996
--- /dev/null
+++ b/llvm/tools/llvm-mca/PipelinePrinter.cpp
@@ -0,0 +1,25 @@
+//===--------------------- PipelinePrinter.cpp ------------------*- C++ -*-===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+/// \file
+///
+/// This file implements the PipelinePrinter interface.
+///
+//===----------------------------------------------------------------------===//
+
+#include "PipelinePrinter.h"
+#include "Views/View.h"
+
+namespace llvm {
+namespace mca {
+
+void PipelinePrinter::printReport(llvm::raw_ostream &OS) const {
+ for (const auto &V : Views)
+ V->printView(OS);
+}
+} // namespace mca.
+} // namespace llvm