]> git.proxmox.com Git - rustc.git/blame - src/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.h
Imported Upstream version 1.0.0+dfsg1
[rustc.git] / src / llvm / lib / Target / AArch64 / MCTargetDesc / AArch64MCTargetDesc.h
CommitLineData
970d7e83
LB
1//===-- AArch64MCTargetDesc.h - AArch64 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 AArch64 specific target descriptions.
11//
12//===----------------------------------------------------------------------===//
13
1a4d82fc
JJ
14#ifndef LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64MCTARGETDESC_H
15#define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64MCTARGETDESC_H
970d7e83
LB
16
17#include "llvm/Support/DataTypes.h"
1a4d82fc 18#include <string>
970d7e83
LB
19
20namespace llvm {
85aaf69f 21class formatted_raw_ostream;
970d7e83
LB
22class MCAsmBackend;
23class MCCodeEmitter;
24class MCContext;
25class MCInstrInfo;
85aaf69f 26class MCInstPrinter;
970d7e83 27class MCRegisterInfo;
1a4d82fc 28class MCObjectWriter;
85aaf69f 29class MCStreamer;
970d7e83
LB
30class MCSubtargetInfo;
31class StringRef;
32class Target;
33class raw_ostream;
34
1a4d82fc
JJ
35extern Target TheAArch64leTarget;
36extern Target TheAArch64beTarget;
37extern Target TheARM64Target;
970d7e83
LB
38
39MCCodeEmitter *createAArch64MCCodeEmitter(const MCInstrInfo &MCII,
1a4d82fc
JJ
40 const MCRegisterInfo &MRI,
41 const MCSubtargetInfo &STI,
42 MCContext &Ctx);
43MCAsmBackend *createAArch64leAsmBackend(const Target &T,
44 const MCRegisterInfo &MRI, StringRef TT,
45 StringRef CPU);
46MCAsmBackend *createAArch64beAsmBackend(const Target &T,
47 const MCRegisterInfo &MRI, StringRef TT,
48 StringRef CPU);
970d7e83 49
1a4d82fc
JJ
50MCObjectWriter *createAArch64ELFObjectWriter(raw_ostream &OS, uint8_t OSABI,
51 bool IsLittleEndian);
970d7e83 52
1a4d82fc
JJ
53MCObjectWriter *createAArch64MachObjectWriter(raw_ostream &OS, uint32_t CPUType,
54 uint32_t CPUSubtype);
970d7e83 55
85aaf69f
SL
56MCStreamer *
57createAArch64MCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
58 bool isVerboseAsm, bool useDwarfDirectory,
59 MCInstPrinter *InstPrint, MCCodeEmitter *CE,
60 MCAsmBackend *TAB, bool ShowInst);
970d7e83
LB
61} // End llvm namespace
62
63// Defines symbolic names for AArch64 registers. This defines a mapping from
64// register name to register number.
65//
66#define GET_REGINFO_ENUM
67#include "AArch64GenRegisterInfo.inc"
68
69// Defines symbolic names for the AArch64 instructions.
70//
71#define GET_INSTRINFO_ENUM
72#include "AArch64GenInstrInfo.inc"
73
74#define GET_SUBTARGETINFO_ENUM
75#include "AArch64GenSubtargetInfo.inc"
76
77#endif