Generate compact unwind encoding from CFI directives.
[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 "llvm/Support/DataTypes.h"
18 #include <string>
19
20 namespace llvm {
21 class MCAsmBackend;
22 class MCCodeEmitter;
23 class MCContext;
24 class MCInstrInfo;
25 class MCObjectWriter;
26 class MCRegisterInfo;
27 class MCSubtargetInfo;
28 class MCRelocationInfo;
29 class StringRef;
30 class Target;
31 class raw_ostream;
32
33 extern Target TheARMTarget, TheThumbTarget;
34
35 namespace ARM_MC {
36   std::string ParseARMTriple(StringRef TT, StringRef CPU);
37
38   /// createARMMCSubtargetInfo - Create a ARM MCSubtargetInfo instance.
39   /// This is exposed so Asm parser, etc. do not need to go through
40   /// TargetRegistry.
41   MCSubtargetInfo *createARMMCSubtargetInfo(StringRef TT, StringRef CPU,
42                                             StringRef FS);
43 }
44
45 MCCodeEmitter *createARMMCCodeEmitter(const MCInstrInfo &MCII,
46                                       const MCRegisterInfo &MRI,
47                                       const MCSubtargetInfo &STI,
48                                       MCContext &Ctx);
49
50 MCAsmBackend *createARMAsmBackend(const Target &T, const MCRegisterInfo &MRI,
51                                   StringRef TT, StringRef CPU);
52
53 /// createARMELFObjectWriter - Construct an ELF Mach-O object writer.
54 MCObjectWriter *createARMELFObjectWriter(raw_ostream &OS,
55                                          uint8_t OSABI);
56
57 /// createARMMachObjectWriter - Construct an ARM Mach-O object writer.
58 MCObjectWriter *createARMMachObjectWriter(raw_ostream &OS,
59                                           bool Is64Bit,
60                                           uint32_t CPUType,
61                                           uint32_t CPUSubtype);
62
63
64 /// createARMMachORelocationInfo - Construct ARM Mach-O relocation info.
65 MCRelocationInfo *createARMMachORelocationInfo(MCContext &Ctx);
66 } // End llvm namespace
67
68 // Defines symbolic names for ARM registers.  This defines a mapping from
69 // register name to register number.
70 //
71 #define GET_REGINFO_ENUM
72 #include "ARMGenRegisterInfo.inc"
73
74 // Defines symbolic names for the ARM instructions.
75 //
76 #define GET_INSTRINFO_ENUM
77 #include "ARMGenInstrInfo.inc"
78
79 #define GET_SUBTARGETINFO_ENUM
80 #include "ARMGenSubtargetInfo.inc"
81
82 #endif