Add the Object Code Emitter class. Original patch by Aaron Gray, I did some
[oota-llvm.git] / lib / Target / Alpha / Alpha.h
1 //===-- Alpha.h - Top-level interface for Alpha representation --*- 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 // This file contains the entry points for global functions defined in the LLVM
11 // Alpha back-end.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef TARGET_ALPHA_H
16 #define TARGET_ALPHA_H
17
18 #include "llvm/Target/TargetMachine.h"
19
20 namespace llvm {
21
22   class AlphaTargetMachine;
23   class FunctionPass;
24   class MachineCodeEmitter;
25   class ObjectCodeEmitter;
26   class raw_ostream;
27
28   FunctionPass *createAlphaISelDag(AlphaTargetMachine &TM);
29   FunctionPass *createAlphaCodePrinterPass(raw_ostream &OS,
30                                            TargetMachine &TM,
31                                            bool Verbose);
32   FunctionPass *createAlphaPatternInstructionSelector(TargetMachine &TM);
33   FunctionPass *createAlphaCodeEmitterPass(AlphaTargetMachine &TM,
34                                            MachineCodeEmitter &MCE);
35   FunctionPass *createAlphaJITCodeEmitterPass(AlphaTargetMachine &TM,
36                                               JITCodeEmitter &JCE);
37   FunctionPass *createAlphaObjectCodeEmitterPass(AlphaTargetMachine &TM,
38                                                  ObjectCodeEmitter &OCE);
39   FunctionPass *createAlphaLLRPPass(AlphaTargetMachine &tm);
40   FunctionPass *createAlphaBranchSelectionPass();
41
42 } // end namespace llvm;
43
44 // Defines symbolic names for Alpha registers.  This defines a mapping from
45 // register name to register number.
46 //
47 #include "AlphaGenRegisterNames.inc"
48
49 // Defines symbolic names for the Alpha instructions.
50 //
51 #include "AlphaGenInstrNames.inc"
52
53 #endif