MIRPrinter.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. //===- MIRPrinter.h - MIR serialization format printer --------------------===//
  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 declares the functions that print out the LLVM IR and the machine
  11. // functions using the MIR serialization format.
  12. //
  13. //===----------------------------------------------------------------------===//
  14. #ifndef LLVM_LIB_CODEGEN_MIRPRINTER_H
  15. #define LLVM_LIB_CODEGEN_MIRPRINTER_H
  16. namespace llvm {
  17. class MachineFunction;
  18. class Module;
  19. class raw_ostream;
  20. /// Print LLVM IR using the MIR serialization format to the given output stream.
  21. void printMIR(raw_ostream &OS, const Module &M);
  22. /// Print a machine function using the MIR serialization format to the given
  23. /// output stream.
  24. void printMIR(raw_ostream &OS, const MachineFunction &MF);
  25. } // end namespace llvm
  26. #endif