2011-08-30 15:23:29 +08:00
|
|
|
//===-- MipsMCTargetDesc.h - Mips Target Descriptions -----------*- C++ -*-===//
|
2011-07-15 04:59:42 +08: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 15:23:29 +08:00
|
|
|
// This file provides Mips specific target descriptions.
|
2011-07-15 04:59:42 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCTARGETDESC_H
|
|
|
|
#define LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCTARGETDESC_H
|
2011-07-15 04:59:42 +08:00
|
|
|
|
2011-12-22 11:03:17 +08:00
|
|
|
#include "llvm/Support/DataTypes.h"
|
|
|
|
|
2011-07-15 04:59:42 +08:00
|
|
|
namespace llvm {
|
2011-10-01 05:23:45 +08:00
|
|
|
class MCAsmBackend;
|
2011-10-01 04:40:03 +08:00
|
|
|
class MCCodeEmitter;
|
|
|
|
class MCContext;
|
2011-11-12 06:58:42 +08:00
|
|
|
class MCInstrInfo;
|
|
|
|
class MCObjectWriter;
|
2012-05-16 01:35:52 +08:00
|
|
|
class MCRegisterInfo;
|
2011-07-15 04:59:42 +08:00
|
|
|
class MCSubtargetInfo;
|
|
|
|
class StringRef;
|
2011-10-01 04:40:03 +08:00
|
|
|
class Target;
|
2015-09-16 00:17:27 +08:00
|
|
|
class Triple;
|
2011-11-12 06:58:42 +08:00
|
|
|
class raw_ostream;
|
2015-04-15 06:14:34 +08:00
|
|
|
class raw_pwrite_stream;
|
2011-07-15 04:59:42 +08:00
|
|
|
|
|
|
|
extern Target TheMipsTarget;
|
|
|
|
extern Target TheMipselTarget;
|
2011-09-21 11:00:58 +08:00
|
|
|
extern Target TheMips64Target;
|
|
|
|
extern Target TheMips64elTarget;
|
2011-07-15 04:59:42 +08:00
|
|
|
|
2012-03-01 09:53:15 +08:00
|
|
|
MCCodeEmitter *createMipsMCCodeEmitterEB(const MCInstrInfo &MCII,
|
2012-05-16 01:35:52 +08:00
|
|
|
const MCRegisterInfo &MRI,
|
2012-03-01 09:53:15 +08:00
|
|
|
MCContext &Ctx);
|
|
|
|
MCCodeEmitter *createMipsMCCodeEmitterEL(const MCInstrInfo &MCII,
|
2012-05-16 01:35:52 +08:00
|
|
|
const MCRegisterInfo &MRI,
|
2012-03-01 09:53:15 +08:00
|
|
|
MCContext &Ctx);
|
2011-10-01 05:23:45 +08:00
|
|
|
|
2014-03-20 00:29:06 +08:00
|
|
|
MCAsmBackend *createMipsAsmBackendEB32(const Target &T,
|
2015-06-10 18:35:34 +08:00
|
|
|
const MCRegisterInfo &MRI,
|
2015-09-16 00:17:27 +08:00
|
|
|
const Triple &TT, StringRef CPU);
|
2014-03-20 00:29:06 +08:00
|
|
|
MCAsmBackend *createMipsAsmBackendEL32(const Target &T,
|
2015-06-10 18:35:34 +08:00
|
|
|
const MCRegisterInfo &MRI,
|
2015-09-16 00:17:27 +08:00
|
|
|
const Triple &TT, StringRef CPU);
|
2014-03-20 00:29:06 +08:00
|
|
|
MCAsmBackend *createMipsAsmBackendEB64(const Target &T,
|
2015-06-10 18:35:34 +08:00
|
|
|
const MCRegisterInfo &MRI,
|
2015-09-16 00:17:27 +08:00
|
|
|
const Triple &TT, StringRef CPU);
|
2014-03-20 00:29:06 +08:00
|
|
|
MCAsmBackend *createMipsAsmBackendEL64(const Target &T,
|
2015-06-10 18:35:34 +08:00
|
|
|
const MCRegisterInfo &MRI,
|
2015-09-16 00:17:27 +08:00
|
|
|
const Triple &TT, StringRef CPU);
|
2011-11-12 06:58:42 +08:00
|
|
|
|
2015-04-15 06:14:34 +08:00
|
|
|
MCObjectWriter *createMipsELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI,
|
2015-02-18 08:55:06 +08:00
|
|
|
bool IsLittleEndian, bool Is64Bit);
|
|
|
|
|
|
|
|
namespace MIPS_MC {
|
2015-09-16 00:17:27 +08:00
|
|
|
StringRef selectMipsCPU(const Triple &TT, StringRef CPU);
|
2015-02-18 08:55:06 +08:00
|
|
|
}
|
|
|
|
|
2015-06-23 17:49:53 +08:00
|
|
|
} // End llvm namespace
|
2011-07-15 04:59:42 +08:00
|
|
|
|
|
|
|
// 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
|