]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - contrib/llvm/lib/Target/MBlaze/MCTargetDesc/MBlazeMCTargetDesc.h
MFC r234353:
[FreeBSD/stable/9.git] / contrib / llvm / 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 "llvm/Support/DataTypes.h"
18
19 namespace llvm {
20 class MCAsmBackend;
21 class MCContext;
22 class MCCodeEmitter;
23 class MCInstrInfo;
24 class MCObjectWriter;
25 class MCSubtargetInfo;
26 class Target;
27 class StringRef;
28 class raw_ostream;
29
30 extern Target TheMBlazeTarget;
31
32 MCCodeEmitter *createMBlazeMCCodeEmitter(const MCInstrInfo &MCII,
33                                          const MCSubtargetInfo &STI,
34                                          MCContext &Ctx);
35
36 MCAsmBackend *createMBlazeAsmBackend(const Target &T, StringRef TT);
37
38 MCObjectWriter *createMBlazeELFObjectWriter(raw_ostream &OS, uint8_t OSABI);
39 } // End llvm namespace
40
41 // Defines symbolic names for MBlaze registers.  This defines a mapping from
42 // register name to register number.
43 #define GET_REGINFO_ENUM
44 #include "MBlazeGenRegisterInfo.inc"
45
46 // Defines symbolic names for the MBlaze instructions.
47 #define GET_INSTRINFO_ENUM
48 #include "MBlazeGenInstrInfo.inc"
49
50 #define GET_SUBTARGETINFO_ENUM
51 #include "MBlazeGenSubtargetInfo.inc"
52
53 #endif