2011-08-30 07:23:29 +00:00
|
|
|
//===-- MipsMCTargetDesc.h - Mips Target Descriptions -----------*- C++ -*-===//
|
2011-07-14 20:59:42 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2011-08-30 07:23:29 +00:00
|
|
|
// This file provides Mips specific target descriptions.
|
2011-07-14 20:59:42 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2011-08-30 07:23:29 +00:00
|
|
|
#ifndef MIPSMCTARGETDESC_H
|
|
|
|
#define MIPSMCTARGETDESC_H
|
2011-07-14 20:59:42 +00:00
|
|
|
|
2011-12-22 03:03:17 +00:00
|
|
|
#include "llvm/Support/DataTypes.h"
|
|
|
|
|
2011-07-14 20:59:42 +00:00
|
|
|
namespace llvm {
|
2011-09-30 21:23:45 +00:00
|
|
|
class MCAsmBackend;
|
2011-09-30 20:40:03 +00:00
|
|
|
class MCCodeEmitter;
|
|
|
|
class MCContext;
|
2011-11-11 22:58:42 +00:00
|
|
|
class MCInstrInfo;
|
|
|
|
class MCObjectWriter;
|
2011-07-14 20:59:42 +00:00
|
|
|
class MCSubtargetInfo;
|
|
|
|
class StringRef;
|
2011-09-30 20:40:03 +00:00
|
|
|
class Target;
|
2011-11-11 22:58:42 +00:00
|
|
|
class raw_ostream;
|
2011-07-14 20:59:42 +00:00
|
|
|
|
|
|
|
extern Target TheMipsTarget;
|
|
|
|
extern Target TheMipselTarget;
|
2011-09-21 03:00:58 +00:00
|
|
|
extern Target TheMips64Target;
|
|
|
|
extern Target TheMips64elTarget;
|
2011-07-14 20:59:42 +00:00
|
|
|
|
2012-03-01 01:53:15 +00:00
|
|
|
MCCodeEmitter *createMipsMCCodeEmitterEB(const MCInstrInfo &MCII,
|
|
|
|
const MCSubtargetInfo &STI,
|
|
|
|
MCContext &Ctx);
|
|
|
|
MCCodeEmitter *createMipsMCCodeEmitterEL(const MCInstrInfo &MCII,
|
|
|
|
const MCSubtargetInfo &STI,
|
|
|
|
MCContext &Ctx);
|
2011-09-30 21:23:45 +00:00
|
|
|
|
2012-04-02 19:25:22 +00:00
|
|
|
MCAsmBackend *createMipsAsmBackendEB32(const Target &T, StringRef TT);
|
|
|
|
MCAsmBackend *createMipsAsmBackendEL32(const Target &T, StringRef TT);
|
|
|
|
MCAsmBackend *createMipsAsmBackendEB64(const Target &T, StringRef TT);
|
|
|
|
MCAsmBackend *createMipsAsmBackendEL64(const Target &T, StringRef TT);
|
2011-11-11 22:58:42 +00:00
|
|
|
|
2011-12-22 03:03:17 +00:00
|
|
|
MCObjectWriter *createMipsELFObjectWriter(raw_ostream &OS,
|
2012-03-01 01:53:15 +00:00
|
|
|
uint8_t OSABI,
|
2012-04-02 19:25:22 +00:00
|
|
|
bool IsLittleEndian,
|
|
|
|
bool Is64Bit);
|
2011-07-14 20:59:42 +00:00
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
// Defines symbolic names for Mips registers. This defines a mapping from
|
|
|
|
// register name to register number.
|
|
|
|
#define GET_REGINFO_ENUM
|
|
|
|
#include "MipsGenRegisterInfo.inc"
|
|
|
|
|
|
|
|
// Defines symbolic names for the Mips instructions.
|
|
|
|
#define GET_INSTRINFO_ENUM
|
|
|
|
#include "MipsGenInstrInfo.inc"
|
|
|
|
|
|
|
|
#define GET_SUBTARGETINFO_ENUM
|
|
|
|
#include "MipsGenSubtargetInfo.inc"
|
|
|
|
|
|
|
|
#endif
|