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