1 //===-- HexagonMCTargetDesc.h - Hexagon 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 Hexagon specific target descriptions. 11 // 12 //===----------------------------------------------------------------------===// 13 14 #ifndef LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCTARGETDESC_H 15 #define LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCTARGETDESC_H 16 17 #include <cstdint> 18 19 namespace llvm { 20 class MCAsmBackend; 21 class MCCodeEmitter; 22 class MCContext; 23 class MCInstrInfo; 24 class MCObjectWriter; 25 class MCRegisterInfo; 26 class MCSubtargetInfo; 27 class Target; 28 class StringRef; 29 class raw_ostream; 30 31 extern Target TheHexagonTarget; 32 33 MCCodeEmitter *createHexagonMCCodeEmitter(MCInstrInfo const &MCII, 34 MCRegisterInfo const &MRI, 35 MCSubtargetInfo const &MST, 36 MCContext &MCT); 37 38 MCAsmBackend *createHexagonAsmBackend(Target const &T, 39 MCRegisterInfo const &MRI, StringRef TT, 40 StringRef CPU); 41 42 MCObjectWriter *createHexagonELFObjectWriter(raw_ostream &OS, uint8_t OSABI, 43 StringRef CPU); 44 45 } // End llvm namespace 46 47 // Define symbolic names for Hexagon registers. This defines a mapping from 48 // register name to register number. 49 // 50 #define GET_REGINFO_ENUM 51 #include "HexagonGenRegisterInfo.inc" 52 53 // Defines symbolic names for the Hexagon instructions. 54 // 55 #define GET_INSTRINFO_ENUM 56 #include "HexagonGenInstrInfo.inc" 57 58 #define GET_SUBTARGETINFO_ENUM 59 #include "HexagonGenSubtargetInfo.inc" 60 61 #endif 62