Sink ARM mc routines into MCTargetDesc.
[oota-llvm.git] / lib / Target / ARM / MCTargetDesc / ARMMCTargetDesc.h
1 //===-- ARMMCTargetDesc.h - ARM 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 ARM specific target descriptions.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef ARMMCTARGETDESC_H
15 #define ARMMCTARGETDESC_H
16
17 #include <string>
18
19 namespace llvm {
20 class MCCodeEmitter;
21 class MCContext;
22 class MCInstrInfo;
23 class MCObjectWriter;
24 class MCSubtargetInfo;
25 class StringRef;
26 class Target;
27 class TargetAsmBackend;
28 class raw_ostream;
29
30 extern Target TheARMTarget, TheThumbTarget;
31
32 namespace ARM_MC {
33   std::string ParseARMTriple(StringRef TT);
34
35   /// createARMMCSubtargetInfo - Create a ARM MCSubtargetInfo instance.
36   /// This is exposed so Asm parser, etc. do not need to go through
37   /// TargetRegistry.
38   MCSubtargetInfo *createARMMCSubtargetInfo(StringRef TT, StringRef CPU,
39                                             StringRef FS);
40 }
41
42 MCCodeEmitter *createARMMCCodeEmitter(const MCInstrInfo &MCII,
43                                       const MCSubtargetInfo &STI,
44                                       MCContext &Ctx);
45
46 TargetAsmBackend *createARMAsmBackend(const Target&, const std::string &);
47
48 /// createARMMachObjectWriter - Construct an ARM Mach-O object writer.
49 MCObjectWriter *createARMMachObjectWriter(raw_ostream &OS,
50                                           bool Is64Bit,
51                                           uint32_t CPUType,
52                                           uint32_t CPUSubtype);
53
54 } // End llvm namespace
55
56 // Defines symbolic names for ARM registers.  This defines a mapping from
57 // register name to register number.
58 //
59 #define GET_REGINFO_ENUM
60 #include "ARMGenRegisterInfo.inc"
61
62 // Defines symbolic names for the ARM instructions.
63 //
64 #define GET_INSTRINFO_ENUM
65 #include "ARMGenInstrInfo.inc"
66
67 #define GET_SUBTARGETINFO_ENUM
68 #include "ARMGenSubtargetInfo.inc"
69
70 #endif