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