LLVM  8.0.1
AArch64MCTargetDesc.h
Go to the documentation of this file.
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 
14 #ifndef LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64MCTARGETDESC_H
15 #define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64MCTARGETDESC_H
16 
17 #include "llvm/Support/DataTypes.h"
18 
19 #include <memory>
20 
21 namespace llvm {
22 class formatted_raw_ostream;
23 class MCAsmBackend;
24 class MCCodeEmitter;
25 class MCContext;
26 class MCInstrInfo;
27 class MCInstPrinter;
28 class MCRegisterInfo;
29 class MCObjectTargetWriter;
30 class MCStreamer;
31 class MCSubtargetInfo;
32 class MCTargetOptions;
33 class MCTargetStreamer;
34 class StringRef;
35 class Target;
36 class Triple;
37 class raw_ostream;
38 class raw_pwrite_stream;
39 
40 Target &getTheAArch64leTarget();
41 Target &getTheAArch64beTarget();
42 Target &getTheARM64Target();
43 
44 MCCodeEmitter *createAArch64MCCodeEmitter(const MCInstrInfo &MCII,
45  const MCRegisterInfo &MRI,
46  MCContext &Ctx);
47 MCAsmBackend *createAArch64leAsmBackend(const Target &T,
48  const MCSubtargetInfo &STI,
49  const MCRegisterInfo &MRI,
50  const MCTargetOptions &Options);
51 MCAsmBackend *createAArch64beAsmBackend(const Target &T,
52  const MCSubtargetInfo &STI,
53  const MCRegisterInfo &MRI,
54  const MCTargetOptions &Options);
55 
56 std::unique_ptr<MCObjectTargetWriter>
57 createAArch64ELFObjectWriter(uint8_t OSABI, bool IsILP32);
58 
59 std::unique_ptr<MCObjectTargetWriter>
61 
62 std::unique_ptr<MCObjectTargetWriter> createAArch64WinCOFFObjectWriter();
63 
64 MCTargetStreamer *createAArch64AsmTargetStreamer(MCStreamer &S,
65  formatted_raw_ostream &OS,
66  MCInstPrinter *InstPrint,
67  bool isVerboseAsm);
68 
69 MCTargetStreamer *createAArch64ObjectTargetStreamer(MCStreamer &S,
70  const MCSubtargetInfo &STI);
71 
72 namespace AArch64_MC {
74 }
75 
76 } // End llvm namespace
77 
78 // Defines symbolic names for AArch64 registers. This defines a mapping from
79 // register name to register number.
80 //
81 #define GET_REGINFO_ENUM
82 #include "AArch64GenRegisterInfo.inc"
83 
84 // Defines symbolic names for the AArch64 instructions.
85 //
86 #define GET_INSTRINFO_ENUM
87 #define GET_INSTRINFO_MC_HELPER_DECLS
88 #include "AArch64GenInstrInfo.inc"
89 
90 #define GET_SUBTARGETINFO_ENUM
91 #include "AArch64GenSubtargetInfo.inc"
92 
93 #endif
Target & getTheAArch64beTarget()
This class represents lattice values for constants.
Definition: AllocatorList.h:24
std::unique_ptr< MCObjectTargetWriter > createAArch64MachObjectWriter(uint32_t CPUType, uint32_t CPUSubtype)
Target & getTheAArch64leTarget()
MCAsmBackend * createAArch64leAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
Target & getTheARM64Target()
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
unsigned const MachineRegisterInfo * MRI
std::unique_ptr< MCObjectTargetWriter > createAArch64ELFObjectWriter(uint8_t OSABI, bool IsILP32)
MCTargetStreamer * createAArch64ObjectTargetStreamer(MCStreamer &S, const MCSubtargetInfo &STI)
MCCodeEmitter * createAArch64MCCodeEmitter(const MCInstrInfo &MCII, const MCRegisterInfo &MRI, MCContext &Ctx)
MCAsmBackend * createAArch64beAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
void initLLVMToCVRegMapping(MCRegisterInfo *MRI)
MCTargetStreamer * createAArch64AsmTargetStreamer(MCStreamer &S, formatted_raw_ostream &OS, MCInstPrinter *InstPrint, bool isVerboseAsm)
std::unique_ptr< MCObjectTargetWriter > createAArch64WinCOFFObjectWriter()