Refactor MBlaze target to separate MC routines from Target routines.
[oota-llvm.git] / lib / Target / MBlaze / MCTargetDesc / MBlazeMCTargetDesc.h
1 //===-- MBlazeMCTargetDesc.h - MBlaze 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 MBlaze specific target descriptions.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef MBLAZEMCTARGETDESC_H
15 #define MBLAZEMCTARGETDESC_H
16
17 #include <string>
18
19 namespace llvm {
20 class MCContext;
21 class MCCodeEmitter;
22 class MCInstrInfo;
23 class MCSubtargetInfo;
24 class Target;
25 class TargetAsmBackend;
26 class StringRef;
27 class formatted_raw_ostream;
28
29 extern Target TheMBlazeTarget;
30
31 MCCodeEmitter *createMBlazeMCCodeEmitter(const MCInstrInfo &MCII,
32                                          const MCSubtargetInfo &STI,
33                                          MCContext &Ctx);
34   
35 TargetAsmBackend *createMBlazeAsmBackend(const Target &, const std::string &);
36
37 } // End llvm namespace
38
39 // Defines symbolic names for MBlaze registers.  This defines a mapping from
40 // register name to register number.
41 #define GET_REGINFO_ENUM
42 #include "MBlazeGenRegisterInfo.inc"
43
44 // Defines symbolic names for the MBlaze instructions.
45 #define GET_INSTRINFO_ENUM
46 #include "MBlazeGenInstrInfo.inc"
47
48 #define GET_SUBTARGETINFO_ENUM
49 #include "MBlazeGenSubtargetInfo.inc"
50
51 #endif