Fix broken build
[oota-llvm.git] / lib / Target / ARM64 / MCTargetDesc / ARM64MCTargetDesc.h
1 //===-- ARM64MCTargetDesc.h - ARM64 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 ARM64 specific target descriptions.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef ARM64MCTARGETDESC_H
15 #define ARM64MCTARGETDESC_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 MCRegisterInfo;
26 class MCObjectWriter;
27 class MCSubtargetInfo;
28 class StringRef;
29 class Target;
30 class raw_ostream;
31
32 extern Target TheARM64leTarget;
33 extern Target TheARM64beTarget;
34
35 MCCodeEmitter *createARM64MCCodeEmitter(const MCInstrInfo &MCII,
36                                         const MCRegisterInfo &MRI,
37                                         const MCSubtargetInfo &STI,
38                                         MCContext &Ctx);
39 MCAsmBackend *createARM64leAsmBackend(const Target &T, const MCRegisterInfo &MRI,
40                                       StringRef TT, StringRef CPU);
41 MCAsmBackend *createARM64beAsmBackend(const Target &T, const MCRegisterInfo &MRI,
42                                       StringRef TT, StringRef CPU);
43
44         MCObjectWriter *createARM64ELFObjectWriter(raw_ostream &OS, uint8_t OSABI,
45                                                    bool IsLittleEndian);
46
47 MCObjectWriter *createARM64MachObjectWriter(raw_ostream &OS, uint32_t CPUType,
48                                             uint32_t CPUSubtype);
49
50 } // End llvm namespace
51
52 // Defines symbolic names for ARM64 registers.  This defines a mapping from
53 // register name to register number.
54 //
55 #define GET_REGINFO_ENUM
56 #include "ARM64GenRegisterInfo.inc"
57
58 // Defines symbolic names for the ARM64 instructions.
59 //
60 #define GET_INSTRINFO_ENUM
61 #include "ARM64GenInstrInfo.inc"
62
63 #define GET_SUBTARGETINFO_ENUM
64 #include "ARM64GenSubtargetInfo.inc"
65
66 #endif