ARM64: initial backend import
[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 TheARM64Target;
33
34 MCCodeEmitter *createARM64MCCodeEmitter(const MCInstrInfo &MCII,
35                                         const MCRegisterInfo &MRI,
36                                         const MCSubtargetInfo &STI,
37                                         MCContext &Ctx);
38 MCAsmBackend *createARM64AsmBackend(const Target &T, const MCRegisterInfo &MRI,
39                                     StringRef TT, StringRef CPU);
40
41 MCObjectWriter *createARM64ELFObjectWriter(raw_ostream &OS, uint8_t OSABI);
42
43 MCObjectWriter *createARM64MachObjectWriter(raw_ostream &OS, uint32_t CPUType,
44                                             uint32_t CPUSubtype);
45
46 } // End llvm namespace
47
48 // Defines symbolic names for ARM64 registers.  This defines a mapping from
49 // register name to register number.
50 //
51 #define GET_REGINFO_ENUM
52 #include "ARM64GenRegisterInfo.inc"
53
54 // Defines symbolic names for the ARM64 instructions.
55 //
56 #define GET_INSTRINFO_ENUM
57 #include "ARM64GenInstrInfo.inc"
58
59 #define GET_SUBTARGETINFO_ENUM
60 #include "ARM64GenSubtargetInfo.inc"
61
62 #endif