2014-05-24 20:50:23 +08:00
|
|
|
//===-- AArch64MCTargetDesc.h - AArch64 Target Descriptions -----*- C++ -*-===//
|
2014-03-29 18:18:08 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2014-05-24 20:50:23 +08:00
|
|
|
// This file provides AArch64 specific target descriptions.
|
2014-03-29 18:18:08 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64MCTARGETDESC_H
|
|
|
|
#define LLVM_LIB_TARGET_AARCH64_MCTARGETDESC_AARCH64MCTARGETDESC_H
|
2014-03-29 18:18:08 +08:00
|
|
|
|
|
|
|
#include "llvm/Support/DataTypes.h"
|
|
|
|
|
2017-10-11 00:28:07 +08:00
|
|
|
#include <memory>
|
|
|
|
|
2014-03-29 18:18:08 +08:00
|
|
|
namespace llvm {
|
2014-10-23 04:35:57 +08:00
|
|
|
class formatted_raw_ostream;
|
2014-03-29 18:18:08 +08:00
|
|
|
class MCAsmBackend;
|
|
|
|
class MCCodeEmitter;
|
|
|
|
class MCContext;
|
|
|
|
class MCInstrInfo;
|
2014-10-23 04:35:57 +08:00
|
|
|
class MCInstPrinter;
|
2014-03-29 18:18:08 +08:00
|
|
|
class MCRegisterInfo;
|
|
|
|
class MCObjectWriter;
|
2014-10-23 04:35:57 +08:00
|
|
|
class MCStreamer;
|
2014-03-29 18:18:08 +08:00
|
|
|
class MCSubtargetInfo;
|
2016-07-26 01:18:28 +08:00
|
|
|
class MCTargetOptions;
|
2015-03-17 05:43:42 +08:00
|
|
|
class MCTargetStreamer;
|
2014-03-29 18:18:08 +08:00
|
|
|
class StringRef;
|
|
|
|
class Target;
|
2015-09-16 00:17:27 +08:00
|
|
|
class Triple;
|
2014-03-29 18:18:08 +08:00
|
|
|
class raw_ostream;
|
2015-04-15 06:14:34 +08:00
|
|
|
class raw_pwrite_stream;
|
2014-03-29 18:18:08 +08:00
|
|
|
|
2016-10-10 07:00:34 +08:00
|
|
|
Target &getTheAArch64leTarget();
|
|
|
|
Target &getTheAArch64beTarget();
|
|
|
|
Target &getTheARM64Target();
|
2014-03-29 18:18:08 +08:00
|
|
|
|
2014-05-24 20:50:23 +08:00
|
|
|
MCCodeEmitter *createAArch64MCCodeEmitter(const MCInstrInfo &MCII,
|
2015-03-11 06:03:14 +08:00
|
|
|
const MCRegisterInfo &MRI,
|
|
|
|
MCContext &Ctx);
|
2014-05-24 20:50:23 +08:00
|
|
|
MCAsmBackend *createAArch64leAsmBackend(const Target &T,
|
2018-01-03 16:53:05 +08:00
|
|
|
const MCSubtargetInfo &STI,
|
2015-06-10 18:35:34 +08:00
|
|
|
const MCRegisterInfo &MRI,
|
2016-07-26 01:18:28 +08:00
|
|
|
const MCTargetOptions &Options);
|
2014-05-24 20:50:23 +08:00
|
|
|
MCAsmBackend *createAArch64beAsmBackend(const Target &T,
|
2018-01-03 16:53:05 +08:00
|
|
|
const MCSubtargetInfo &STI,
|
2015-06-10 18:35:34 +08:00
|
|
|
const MCRegisterInfo &MRI,
|
2016-07-26 01:18:28 +08:00
|
|
|
const MCTargetOptions &Options);
|
2014-03-29 18:18:08 +08:00
|
|
|
|
2017-10-11 00:28:07 +08:00
|
|
|
std::unique_ptr<MCObjectWriter>
|
|
|
|
createAArch64ELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI,
|
|
|
|
bool IsLittleEndian, bool IsILP32);
|
2014-03-29 18:18:08 +08:00
|
|
|
|
2017-10-11 00:28:07 +08:00
|
|
|
std::unique_ptr<MCObjectWriter>
|
|
|
|
createAArch64MachObjectWriter(raw_pwrite_stream &OS, uint32_t CPUType,
|
|
|
|
uint32_t CPUSubtype);
|
2014-03-29 18:18:08 +08:00
|
|
|
|
2017-10-11 00:28:07 +08:00
|
|
|
std::unique_ptr<MCObjectWriter>
|
|
|
|
createAArch64WinCOFFObjectWriter(raw_pwrite_stream &OS);
|
2017-06-28 07:58:19 +08:00
|
|
|
|
2015-03-17 05:43:42 +08:00
|
|
|
MCTargetStreamer *createAArch64AsmTargetStreamer(MCStreamer &S,
|
|
|
|
formatted_raw_ostream &OS,
|
|
|
|
MCInstPrinter *InstPrint,
|
|
|
|
bool isVerboseAsm);
|
2015-03-19 09:50:16 +08:00
|
|
|
|
|
|
|
MCTargetStreamer *createAArch64ObjectTargetStreamer(MCStreamer &S,
|
|
|
|
const MCSubtargetInfo &STI);
|
|
|
|
|
[COFF, ARM64, CodeView] Add support to emit CodeView debug info for ARM64 COFF
Reviewers: compnerd, ruiu, rnk, zturner
Reviewed By: rnk
Subscribers: majnemer, aemerson, aprantl, javed.absar, kristof.beyls, llvm-commits
Differential Revision: https://reviews.llvm.org/D35518
llvm-svn: 308665
2017-07-21 04:20:00 +08:00
|
|
|
namespace AArch64_MC {
|
|
|
|
void initLLVMToCVRegMapping(MCRegisterInfo *MRI);
|
|
|
|
}
|
|
|
|
|
2015-06-23 17:49:53 +08:00
|
|
|
} // End llvm namespace
|
2014-03-29 18:18:08 +08:00
|
|
|
|
2014-05-24 20:50:23 +08:00
|
|
|
// Defines symbolic names for AArch64 registers. This defines a mapping from
|
2014-03-29 18:18:08 +08:00
|
|
|
// register name to register number.
|
|
|
|
//
|
|
|
|
#define GET_REGINFO_ENUM
|
2014-05-24 20:50:23 +08:00
|
|
|
#include "AArch64GenRegisterInfo.inc"
|
2014-03-29 18:18:08 +08:00
|
|
|
|
2014-05-24 20:50:23 +08:00
|
|
|
// Defines symbolic names for the AArch64 instructions.
|
2014-03-29 18:18:08 +08:00
|
|
|
//
|
|
|
|
#define GET_INSTRINFO_ENUM
|
2014-05-24 20:50:23 +08:00
|
|
|
#include "AArch64GenInstrInfo.inc"
|
2014-03-29 18:18:08 +08:00
|
|
|
|
|
|
|
#define GET_SUBTARGETINFO_ENUM
|
2014-05-24 20:50:23 +08:00
|
|
|
#include "AArch64GenSubtargetInfo.inc"
|
2014-03-29 18:18:08 +08:00
|
|
|
|
|
|
|
#endif
|