Initial support for carrying MachineInstrs in SUnits.
[oota-llvm.git] / include / llvm / CodeGen / FileWriters.h
1 //===-- FileWriters.h - File Writers Creation Functions ---------*- 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 // Functions to add the various file writer passes.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_CODEGEN_FILEWRITERS_H
15 #define LLVM_CODEGEN_FILEWRITERS_H
16
17 #include <iosfwd>
18
19 namespace llvm {
20
21   class PassManagerBase;
22   class MachineCodeEmitter;
23   class TargetMachine;
24   class raw_ostream;
25
26   MachineCodeEmitter *AddELFWriter(PassManagerBase &FPM, raw_ostream &O,
27                                    TargetMachine &TM);
28   MachineCodeEmitter *AddMachOWriter(PassManagerBase &FPM, raw_ostream &O,
29                                      TargetMachine &TM);
30
31 } // end llvm namespace
32
33 #endif // LLVM_CODEGEN_FILEWRITERS_H