IVUsersPrinter.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. //===- IVUsersPrinter.h - Induction Variable Users Printing -----*- 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_IVUSERSPRINTER_H
  14. #define LLVM_TRANSFORMS_SCALAR_IVUSERSPRINTER_H
  15. #include "llvm/Analysis/LoopAnalysisManager.h"
  16. #include "llvm/IR/PassManager.h"
  17. namespace llvm {
  18. class LPMUpdater;
  19. class Loop;
  20. class raw_ostream;
  21. /// Printer pass for the \c IVUsers for a loop.
  22. class IVUsersPrinterPass : public PassInfoMixin<IVUsersPrinterPass> {
  23. raw_ostream &OS;
  24. public:
  25. explicit IVUsersPrinterPass(raw_ostream &OS) : OS(OS) {}
  26. PreservedAnalyses run(Loop &L, LoopAnalysisManager &AM,
  27. LoopStandardAnalysisResults &AR, LPMUpdater &U);
  28. };
  29. }
  30. #endif
  31. #ifdef __GNUC__
  32. #pragma GCC diagnostic pop
  33. #endif