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
20 struct InstrItinerary;
28 class MCSubtargetInfo;
32 class raw_pwrite_stream;
34 extern Target TheHexagonTarget;
36 extern const InstrStage HexagonStages[];
38 MCInstrInfo *createHexagonMCInstrInfo();
40 MCCodeEmitter *createHexagonMCCodeEmitter(MCInstrInfo const &MCII,
41 MCRegisterInfo const &MRI,
44 MCAsmBackend *createHexagonAsmBackend(Target const &T,
45 MCRegisterInfo const &MRI, StringRef TT,
48 MCObjectWriter *createHexagonELFObjectWriter(raw_pwrite_stream &OS,
49 uint8_t OSABI, StringRef CPU);
51 } // End llvm namespace
53 // Define symbolic names for Hexagon registers. This defines a mapping from
54 // register name to register number.
56 #define GET_REGINFO_ENUM
57 #include "HexagonGenRegisterInfo.inc"
59 // Defines symbolic names for the Hexagon instructions.
61 #define GET_INSTRINFO_ENUM
62 #include "HexagonGenInstrInfo.inc"
64 #define GET_SUBTARGETINFO_ENUM
65 #include "HexagonGenSubtargetInfo.inc"