c99815ce477bfbb76687a1ac38e9a3ea81b5ed1d
[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 namespace llvm {
18 struct InstrItinerary;
19 struct InstrStage;
20 class MCCodeEmitter;
21 class MCContext;
22 class MCInstrInfo;
23 class MCRegisterInfo;
24 class MCSubtargetInfo;
25 class Target;
26
27 extern Target TheHexagonTarget;
28
29 MCCodeEmitter *createHexagonMCCodeEmitter(const MCInstrInfo &MCII,
30                                           const MCRegisterInfo &MRI,
31                                           const MCSubtargetInfo &MST,
32                                           MCContext &MCT);
33
34 } // End llvm namespace
35
36 // Define symbolic names for Hexagon registers.  This defines a mapping from
37 // register name to register number.
38 //
39 #define GET_REGINFO_ENUM
40 #include "HexagonGenRegisterInfo.inc"
41
42 // Defines symbolic names for the Hexagon instructions.
43 //
44 #define GET_INSTRINFO_ENUM
45 #include "HexagonGenInstrInfo.inc"
46
47 #define GET_SUBTARGETINFO_ENUM
48 #include "HexagonGenSubtargetInfo.inc"
49
50 #endif