[Hexagon] classes are actually structs.
[oota-llvm.git] / lib / Target / Hexagon / MCTargetDesc / HexagonMCTargetDesc.h
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 struct InstrItinerary;
21 struct InstrStage;
22 class MCAsmBackend;
23 class MCCodeEmitter;
24 class MCContext;
25 class MCInstrInfo;
26 class MCObjectWriter;
27 class MCRegisterInfo;
28 class MCSubtargetInfo;
29 class Target;
30 class StringRef;
31 class raw_ostream;
32 class raw_pwrite_stream;
33
34 extern Target TheHexagonTarget;
35
36 extern const InstrStage HexagonStages[];
37
38 MCInstrInfo *createHexagonMCInstrInfo();
39
40 MCCodeEmitter *createHexagonMCCodeEmitter(MCInstrInfo const &MCII,
41                                           MCRegisterInfo const &MRI,
42                                           MCContext &MCT);
43
44 MCAsmBackend *createHexagonAsmBackend(Target const &T,
45                                       MCRegisterInfo const &MRI, StringRef TT,
46                                       StringRef CPU);
47
48 MCObjectWriter *createHexagonELFObjectWriter(raw_pwrite_stream &OS,
49                                              uint8_t OSABI, StringRef CPU);
50
51 } // End llvm namespace
52
53 // Define symbolic names for Hexagon registers.  This defines a mapping from
54 // register name to register number.
55 //
56 #define GET_REGINFO_ENUM
57 #include "HexagonGenRegisterInfo.inc"
58
59 // Defines symbolic names for the Hexagon instructions.
60 //
61 #define GET_INSTRINFO_ENUM
62 #include "HexagonGenInstrInfo.inc"
63
64 #define GET_SUBTARGETINFO_ENUM
65 #include "HexagonGenSubtargetInfo.inc"
66
67 #endif