xref: /aosp_15_r20/external/llvm/lib/CodeGen/MIRPrinter.h (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker //===- MIRPrinter.h - MIR serialization format printer --------------------===//
2*9880d681SAndroid Build Coastguard Worker //
3*9880d681SAndroid Build Coastguard Worker //                     The LLVM Compiler Infrastructure
4*9880d681SAndroid Build Coastguard Worker //
5*9880d681SAndroid Build Coastguard Worker // This file is distributed under the University of Illinois Open Source
6*9880d681SAndroid Build Coastguard Worker // License. See LICENSE.TXT for details.
7*9880d681SAndroid Build Coastguard Worker //
8*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===//
9*9880d681SAndroid Build Coastguard Worker //
10*9880d681SAndroid Build Coastguard Worker // This file declares the functions that print out the LLVM IR and the machine
11*9880d681SAndroid Build Coastguard Worker // functions using the MIR serialization format.
12*9880d681SAndroid Build Coastguard Worker //
13*9880d681SAndroid Build Coastguard Worker //===----------------------------------------------------------------------===//
14*9880d681SAndroid Build Coastguard Worker 
15*9880d681SAndroid Build Coastguard Worker #ifndef LLVM_LIB_CODEGEN_MIRPRINTER_H
16*9880d681SAndroid Build Coastguard Worker #define LLVM_LIB_CODEGEN_MIRPRINTER_H
17*9880d681SAndroid Build Coastguard Worker 
18*9880d681SAndroid Build Coastguard Worker namespace llvm {
19*9880d681SAndroid Build Coastguard Worker 
20*9880d681SAndroid Build Coastguard Worker class MachineFunction;
21*9880d681SAndroid Build Coastguard Worker class Module;
22*9880d681SAndroid Build Coastguard Worker class raw_ostream;
23*9880d681SAndroid Build Coastguard Worker 
24*9880d681SAndroid Build Coastguard Worker /// Print LLVM IR using the MIR serialization format to the given output stream.
25*9880d681SAndroid Build Coastguard Worker void printMIR(raw_ostream &OS, const Module &M);
26*9880d681SAndroid Build Coastguard Worker 
27*9880d681SAndroid Build Coastguard Worker /// Print a machine function using the MIR serialization format to the given
28*9880d681SAndroid Build Coastguard Worker /// output stream.
29*9880d681SAndroid Build Coastguard Worker void printMIR(raw_ostream &OS, const MachineFunction &MF);
30*9880d681SAndroid Build Coastguard Worker 
31*9880d681SAndroid Build Coastguard Worker } // end namespace llvm
32*9880d681SAndroid Build Coastguard Worker 
33*9880d681SAndroid Build Coastguard Worker #endif
34