Refactor PPC target to separate MC routines from Target routines.
[oota-llvm.git] / lib / Target / PowerPC / MCTargetDesc / PPCMCTargetDesc.h
1 //===-- PPCMCTargetDesc.h - PowerPC Target Descriptions ---------*- 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 provides PowerPC specific target descriptions.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef PPCMCTARGETDESC_H
15 #define PPCMCTARGETDESC_H
16
17 #include <string>
18
19 namespace llvm {
20 class MCCodeEmitter;
21 class MCContext;
22 class MCInstrInfo;
23 class MCSubtargetInfo;
24 class Target;
25 class TargetAsmBackend;
26 class StringRef;
27
28 extern Target ThePPC32Target;
29 extern Target ThePPC64Target;
30   
31 MCCodeEmitter *createPPCMCCodeEmitter(const MCInstrInfo &MCII,
32                                       const MCSubtargetInfo &STI,
33                                       MCContext &Ctx);
34
35 TargetAsmBackend *createPPCAsmBackend(const Target &, const std::string &);
36   
37 } // End llvm namespace
38
39 // Defines symbolic names for PowerPC registers.  This defines a mapping from
40 // register name to register number.
41 //
42 #define GET_REGINFO_ENUM
43 #include "PPCGenRegisterInfo.inc"
44
45 // Defines symbolic names for the PowerPC instructions.
46 //
47 #define GET_INSTRINFO_ENUM
48 #include "PPCGenInstrInfo.inc"
49
50 #define GET_SUBTARGETINFO_ENUM
51 #include "PPCGenSubtargetInfo.inc"
52
53 #endif