DomPrinter.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===-- DomPrinter.h - Dom printer external interface ------------*- 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. //
  14. // This file defines external functions that can be called to explicitly
  15. // instantiate the dominance tree printer.
  16. //
  17. //===----------------------------------------------------------------------===//
  18. #ifndef LLVM_ANALYSIS_DOMPRINTER_H
  19. #define LLVM_ANALYSIS_DOMPRINTER_H
  20. #include "llvm/IR/PassManager.h"
  21. namespace llvm {
  22. class DomTreePrinterPass : public PassInfoMixin<DomTreePrinterPass> {
  23. public:
  24. PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
  25. };
  26. class DomTreeOnlyPrinterPass : public PassInfoMixin<DomTreeOnlyPrinterPass> {
  27. public:
  28. PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
  29. };
  30. } // namespace llvm
  31. namespace llvm {
  32. class FunctionPass;
  33. FunctionPass *createDomPrinterPass();
  34. FunctionPass *createDomOnlyPrinterPass();
  35. FunctionPass *createDomViewerPass();
  36. FunctionPass *createDomOnlyViewerPass();
  37. FunctionPass *createPostDomPrinterPass();
  38. FunctionPass *createPostDomOnlyPrinterPass();
  39. FunctionPass *createPostDomViewerPass();
  40. FunctionPass *createPostDomOnlyViewerPass();
  41. } // End llvm namespace
  42. #endif
  43. #ifdef __GNUC__
  44. #pragma GCC diagnostic pop
  45. #endif