Remove subreg index from MachineInstr's and also keep vregs as unsigned when adding...
[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 was developed by Bill Wendling and is distributed under the
6 // University of Illinois Open Source 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 FunctionPassManager;
22   class MachineCodeEmitter;
23   class TargetMachine;
24
25   MachineCodeEmitter *AddELFWriter(FunctionPassManager &FPM, std::ostream &O,
26                                    TargetMachine &TM);
27   MachineCodeEmitter *AddMachOWriter(FunctionPassManager &FPM, std::ostream &O,
28                                      TargetMachine &TM);
29
30 } // end llvm namespace
31
32 #endif // LLVM_CODEGEN_FILEWRITERS_H