1 //===-- HexagonMCTargetDesc.h - Hexagon 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 Hexagon specific target descriptions.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCTARGETDESC_H
15 #define LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCTARGETDESC_H
26 class MCSubtargetInfo;
31 extern Target TheHexagonTarget;
33 MCInstrInfo *createHexagonMCInstrInfo();
35 MCCodeEmitter *createHexagonMCCodeEmitter(MCInstrInfo const &MCII,
36 MCRegisterInfo const &MRI,
37 MCSubtargetInfo const &MST,
40 MCAsmBackend *createHexagonAsmBackend(Target const &T,
41 MCRegisterInfo const &MRI, StringRef TT,
44 MCObjectWriter *createHexagonELFObjectWriter(raw_ostream &OS, uint8_t OSABI,
47 } // End llvm namespace
49 // Define symbolic names for Hexagon registers. This defines a mapping from
50 // register name to register number.
52 #define GET_REGINFO_ENUM
53 #include "HexagonGenRegisterInfo.inc"
55 // Defines symbolic names for the Hexagon instructions.
57 #define GET_INSTRINFO_ENUM
58 #include "HexagonGenInstrInfo.inc"
60 #define GET_SUBTARGETINFO_ENUM
61 #include "HexagonGenSubtargetInfo.inc"