Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.9 KiB

  1. //===- llvm/Assembly/PrintModulePass.h - Printing Pass ----------*- C++ -*-===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. //
  10. // This file defines two passes to print out a module. The PrintModulePass pass
  11. // simply prints out the entire module when it is executed. The
  12. // PrintFunctionPass class is designed to be pipelined with other
  13. // FunctionPass's, and prints out the functions of the module as they are
  14. // processed.
  15. //
  16. //===----------------------------------------------------------------------===//
  17. #ifndef LLVM_ASSEMBLY_PRINTMODULEPASS_H
  18. #define LLVM_ASSEMBLY_PRINTMODULEPASS_H
  19. #include <string>
  20. namespace llvm {
  21. class FunctionPass;
  22. class ModulePass;
  23. class BasicBlockPass;
  24. class raw_ostream;
  25. /// createPrintModulePass - Create and return a pass that writes the
  26. /// module to the specified raw_ostream.
  27. ModulePass *createPrintModulePass(raw_ostream *OS,
  28. bool DeleteStream=false,
  29. const std::string &Banner = "");
  30. /// createPrintFunctionPass - Create and return a pass that prints
  31. /// functions to the specified raw_ostream as they are processed.
  32. FunctionPass *createPrintFunctionPass(const std::string &Banner,
  33. raw_ostream *OS,
  34. bool DeleteStream=false);
  35. /// createPrintBasicBlockPass - Create and return a pass that writes the
  36. /// BB to the specified raw_ostream.
  37. BasicBlockPass *createPrintBasicBlockPass(raw_ostream *OS,
  38. bool DeleteStream=false,
  39. const std::string &Banner = "");
  40. } // End llvm namespace
  41. #endif