1 //===-- AArch64MCTargetDesc.h - AArch64 Target Descriptions -----*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This file provides AArch64 specific target descriptions.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64MCTARGETDESC_H
14 #define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64MCTARGETDESC_H
16 #include "llvm/Support/DataTypes.h"
21 class formatted_raw_ostream
;
29 class MCObjectTargetWriter
;
31 class MCSubtargetInfo
;
32 class MCTargetOptions
;
33 class MCTargetStreamer
;
36 MCCodeEmitter
*createAArch64MCCodeEmitter(const MCInstrInfo
&MCII
,
38 MCAsmBackend
*createAArch64leAsmBackend(const Target
&T
,
39 const MCSubtargetInfo
&STI
,
40 const MCRegisterInfo
&MRI
,
41 const MCTargetOptions
&Options
);
42 MCAsmBackend
*createAArch64beAsmBackend(const Target
&T
,
43 const MCSubtargetInfo
&STI
,
44 const MCRegisterInfo
&MRI
,
45 const MCTargetOptions
&Options
);
47 std::unique_ptr
<MCObjectTargetWriter
>
48 createAArch64ELFObjectWriter(uint8_t OSABI
, bool IsILP32
);
50 std::unique_ptr
<MCObjectTargetWriter
>
51 createAArch64MachObjectWriter(uint32_t CPUType
, uint32_t CPUSubtype
,
54 std::unique_ptr
<MCObjectTargetWriter
> createAArch64WinCOFFObjectWriter();
56 MCTargetStreamer
*createAArch64AsmTargetStreamer(MCStreamer
&S
,
57 formatted_raw_ostream
&OS
,
58 MCInstPrinter
*InstPrint
,
61 namespace AArch64_MC
{
62 void initLLVMToCVRegMapping(MCRegisterInfo
*MRI
);
63 bool isQForm(const MCInst
&MI
, const MCInstrInfo
*MCII
);
64 bool isFpOrNEON(const MCInst
&MI
, const MCInstrInfo
*MCII
);
67 } // End llvm namespace
69 // Defines symbolic names for AArch64 registers. This defines a mapping from
70 // register name to register number.
72 #define GET_REGINFO_ENUM
73 #include "AArch64GenRegisterInfo.inc"
75 // Defines symbolic names for the AArch64 instructions.
77 #define GET_INSTRINFO_ENUM
78 #define GET_INSTRINFO_MC_HELPER_DECLS
79 #include "AArch64GenInstrInfo.inc"
81 #define GET_SUBTARGETINFO_ENUM
82 #include "AArch64GenSubtargetInfo.inc"