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 class raw_pwrite_stream;
31 
32 extern Target TheHexagonTarget;
33 
34 MCInstrInfo *createHexagonMCInstrInfo();
35 
36 MCCodeEmitter *createHexagonMCCodeEmitter(MCInstrInfo const &MCII,
37                                           MCRegisterInfo const &MRI,
38                                           MCContext &MCT);
39 
40 MCAsmBackend *createHexagonAsmBackend(Target const &T,
41                                       MCRegisterInfo const &MRI, StringRef TT,
42                                       StringRef CPU);
43 
44 MCObjectWriter *createHexagonELFObjectWriter(raw_pwrite_stream &OS,
45                                              uint8_t OSABI, StringRef CPU);
46 
47 } // End llvm namespace
48 
49 // Define symbolic names for Hexagon registers.  This defines a mapping from
50 // register name to register number.
51 //
52 #define GET_REGINFO_ENUM
53 #include "HexagonGenRegisterInfo.inc"
54 
55 // Defines symbolic names for the Hexagon instructions.
56 //
57 #define GET_INSTRINFO_ENUM
58 #include "HexagonGenInstrInfo.inc"
59 
60 #define GET_SUBTARGETINFO_ENUM
61 #include "HexagonGenSubtargetInfo.inc"
62 
63 #endif
64