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 19namespace llvm { 20class MCAsmBackend; 21class MCContext; 22class MCCodeEmitter; 23class MCInstrInfo; 24class MCObjectWriter; 25class MCRegisterInfo; 26class MCSubtargetInfo; 27class Target; 28class StringRef; 29class raw_ostream; 30 31extern Target TheMBlazeTarget; 32 33MCCodeEmitter *createMBlazeMCCodeEmitter(const MCInstrInfo &MCII, 34 const MCRegisterInfo &MRI, 35 const MCSubtargetInfo &STI, 36 MCContext &Ctx); 37 38MCAsmBackend *createMBlazeAsmBackend(const Target &T, StringRef TT, 39 StringRef CPU); 40 41MCObjectWriter *createMBlazeELFObjectWriter(raw_ostream &OS, uint8_t OSABI); 42} // End llvm namespace 43 44// Defines symbolic names for MBlaze registers. This defines a mapping from 45// register name to register number. 46#define GET_REGINFO_ENUM 47#include "MBlazeGenRegisterInfo.inc" 48 49// Defines symbolic names for the MBlaze instructions. 50#define GET_INSTRINFO_ENUM 51#include "MBlazeGenInstrInfo.inc" 52 53#define GET_SUBTARGETINFO_ENUM 54#include "MBlazeGenSubtargetInfo.inc" 55 56#endif 57