1 //===-- AArch64MCTargetDesc.h - AArch64 Target Descriptions -----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file provides AArch64 specific target descriptions.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64MCTARGETDESC_H
15 #define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64MCTARGETDESC_H
17 #include "llvm/Support/DataTypes.h"
20 class formatted_raw_ostream;
29 class MCSubtargetInfo;
30 class MCTargetOptions;
31 class MCTargetStreamer;
36 class raw_pwrite_stream;
38 Target &getTheAArch64leTarget();
39 Target &getTheAArch64beTarget();
40 Target &getTheARM64Target();
42 MCCodeEmitter *createAArch64MCCodeEmitter(const MCInstrInfo &MCII,
43 const MCRegisterInfo &MRI,
45 MCAsmBackend *createAArch64leAsmBackend(const Target &T,
46 const MCRegisterInfo &MRI,
47 const Triple &TT, StringRef CPU,
48 const MCTargetOptions &Options);
49 MCAsmBackend *createAArch64beAsmBackend(const Target &T,
50 const MCRegisterInfo &MRI,
51 const Triple &TT, StringRef CPU,
52 const MCTargetOptions &Options);
54 MCObjectWriter *createAArch64ELFObjectWriter(raw_pwrite_stream &OS,
59 MCObjectWriter *createAArch64MachObjectWriter(raw_pwrite_stream &OS,
63 MCTargetStreamer *createAArch64AsmTargetStreamer(MCStreamer &S,
64 formatted_raw_ostream &OS,
65 MCInstPrinter *InstPrint,
68 MCTargetStreamer *createAArch64ObjectTargetStreamer(MCStreamer &S,
69 const MCSubtargetInfo &STI);
71 } // End llvm namespace
73 // Defines symbolic names for AArch64 registers. This defines a mapping from
74 // register name to register number.
76 #define GET_REGINFO_ENUM
77 #include "AArch64GenRegisterInfo.inc"
79 // Defines symbolic names for the AArch64 instructions.
81 #define GET_INSTRINFO_ENUM
82 #include "AArch64GenInstrInfo.inc"
84 #define GET_SUBTARGETINFO_ENUM
85 #include "AArch64GenSubtargetInfo.inc"