1 //===-- LanaiMCTargetDesc.h - Lanai 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 Lanai specific target descriptions.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIMCTARGETDESC_H
15 #define LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIMCTARGETDESC_H
17 #include "llvm/MC/MCRegisterInfo.h"
18 #include "llvm/MC/MCTargetOptions.h"
19 #include "llvm/Support/DataTypes.h"
26 class MCInstrAnalysis;
27 class MCObjectTargetWriter;
28 class MCRelocationInfo;
29 class MCSubtargetInfo;
33 class raw_pwrite_stream;
35 Target &getTheLanaiTarget();
37 MCCodeEmitter *createLanaiMCCodeEmitter(const MCInstrInfo &MCII,
38 const MCRegisterInfo &MRI,
41 MCAsmBackend *createLanaiAsmBackend(const Target &T, const MCSubtargetInfo &STI,
42 const MCRegisterInfo &MRI,
43 const MCTargetOptions &Options);
45 std::unique_ptr<MCObjectTargetWriter> createLanaiELFObjectWriter(uint8_t OSABI);
48 // Defines symbolic names for Lanai registers. This defines a mapping from
49 // register name to register number.
50 #define GET_REGINFO_ENUM
51 #include "LanaiGenRegisterInfo.inc"
53 // Defines symbolic names for the Lanai instructions.
54 #define GET_INSTRINFO_ENUM
55 #include "LanaiGenInstrInfo.inc"
57 #define GET_SUBTARGETINFO_ENUM
58 #include "LanaiGenSubtargetInfo.inc"
60 #endif // LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIMCTARGETDESC_H