summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIR/MIRPrinter.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/MIR/MIRPrinter.h')
-rw-r--r--llvm/lib/CodeGen/MIR/MIRPrinter.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MIR/MIRPrinter.h b/llvm/lib/CodeGen/MIR/MIRPrinter.h
new file mode 100644
index 00000000000..2e6d645af71
--- /dev/null
+++ b/llvm/lib/CodeGen/MIR/MIRPrinter.h
@@ -0,0 +1,29 @@
+//===- MIRPrinter.h - MIR serialization format printer --------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file declares the function that prints out the LLVM IR using the MIR
+// serialization format.
+// TODO: Print out machine functions.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIB_CODEGEN_MIR_MIRPRINTER_H
+#define LLVM_LIB_CODEGEN_MIR_MIRPRINTER_H
+
+namespace llvm {
+
+class Module;
+class raw_ostream;
+
+/// Print LLVM IR using the MIR serialization format to the given output stream.
+void printMIR(raw_ostream &OS, const Module &Mod);
+
+} // end namespace llvm
+
+#endif
OpenPOWER on IntegriCloud