MemDerefPrinter.h 786 B

123456789101112131415161718192021222324
  1. //===- MemDerefPrinter.h - Printer for isDereferenceablePointer -----------===//
  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. #ifndef LLVM_ANALYSIS_MEMDEREFPRINTER_H
  9. #define LLVM_ANALYSIS_MEMDEREFPRINTER_H
  10. #include "llvm/IR/PassManager.h"
  11. namespace llvm {
  12. class MemDerefPrinterPass : public PassInfoMixin<MemDerefPrinterPass> {
  13. raw_ostream &OS;
  14. public:
  15. MemDerefPrinterPass(raw_ostream &OS) : OS(OS) {}
  16. PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
  17. };
  18. } // namespace llvm
  19. #endif // LLVM_ANALYSIS_MEMDEREFPRINTER_H