LoopAccessAnalysisPrinter.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- llvm/Analysis/LoopAccessAnalysisPrinter.h ----------------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_TRANSFORMS_SCALAR_LOOPACCESSANALYSISPRINTER_H
  14. #define LLVM_TRANSFORMS_SCALAR_LOOPACCESSANALYSISPRINTER_H
  15. #include "llvm/Analysis/LoopAnalysisManager.h"
  16. #include "llvm/IR/PassManager.h"
  17. namespace llvm {
  18. class Function;
  19. class raw_ostream;
  20. /// Printer pass for the \c LoopAccessInfo results.
  21. class LoopAccessInfoPrinterPass
  22. : public PassInfoMixin<LoopAccessInfoPrinterPass> {
  23. raw_ostream &OS;
  24. public:
  25. explicit LoopAccessInfoPrinterPass(raw_ostream &OS) : OS(OS) {}
  26. PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
  27. };
  28. } // End llvm namespace
  29. #endif
  30. #ifdef __GNUC__
  31. #pragma GCC diagnostic pop
  32. #endif