PipelinePrinter.cpp 784 B

12345678910111213141516171819202122232425
  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. #include "PipelinePrinter.h"
  14. #include "Views/View.h"
  15. namespace llvm {
  16. namespace mca {
  17. void PipelinePrinter::printReport(llvm::raw_ostream &OS) const {
  18. for (const auto &V : Views)
  19. V->printView(OutputKind, OS);
  20. }
  21. } // namespace mca.
  22. } // namespace llvm