PassPrinters.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //=- PassPrinters.h - Utilities to print analysis info for passes -*- 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. ///
  9. /// \file
  10. /// Utilities to print analysis info for various kinds of passes.
  11. ///
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_TOOLS_OPT_PASSPRINTERS_H
  14. #define LLVM_TOOLS_OPT_PASSPRINTERS_H
  15. namespace llvm {
  16. class CallGraphSCCPass;
  17. class FunctionPass;
  18. class ModulePass;
  19. class LoopPass;
  20. class PassInfo;
  21. class raw_ostream;
  22. class RegionPass;
  23. FunctionPass *createFunctionPassPrinter(const PassInfo *PI, raw_ostream &out);
  24. CallGraphSCCPass *createCallGraphPassPrinter(const PassInfo *PI,
  25. raw_ostream &out);
  26. ModulePass *createModulePassPrinter(const PassInfo *PI, raw_ostream &out);
  27. LoopPass *createLoopPassPrinter(const PassInfo *PI, raw_ostream &out);
  28. RegionPass *createRegionPassPrinter(const PassInfo *PI, raw_ostream &out);
  29. } // end namespace llvm
  30. #endif // LLVM_TOOLS_OPT_PASSPRINTERS_H