2011-07-14 20:59:42 +00:00
|
|
|
//===-- SparcMCTargetDesc.h - Sparc Target Descriptions ---------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file provides Sparc specific target descriptions.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-13 16:26:38 +00:00
|
|
|
#ifndef LLVM_LIB_TARGET_SPARC_MCTARGETDESC_SPARCMCTARGETDESC_H
|
|
|
|
#define LLVM_LIB_TARGET_SPARC_MCTARGETDESC_SPARCMCTARGETDESC_H
|
2011-07-14 20:59:42 +00:00
|
|
|
|
2014-01-06 01:22:54 +00:00
|
|
|
#include "llvm/Support/DataTypes.h"
|
|
|
|
|
2011-07-14 20:59:42 +00:00
|
|
|
namespace llvm {
|
2014-01-05 02:13:48 +00:00
|
|
|
class MCAsmBackend;
|
|
|
|
class MCCodeEmitter;
|
|
|
|
class MCContext;
|
|
|
|
class MCInstrInfo;
|
2014-01-06 01:22:54 +00:00
|
|
|
class MCObjectWriter;
|
2014-01-05 02:13:48 +00:00
|
|
|
class MCRegisterInfo;
|
|
|
|
class MCSubtargetInfo;
|
2011-07-14 20:59:42 +00:00
|
|
|
class Target;
|
2014-01-05 02:13:48 +00:00
|
|
|
class StringRef;
|
2015-04-14 22:14:34 +00:00
|
|
|
class raw_pwrite_stream;
|
2014-01-06 01:22:54 +00:00
|
|
|
class raw_ostream;
|
2011-07-14 20:59:42 +00:00
|
|
|
|
|
|
|
extern Target TheSparcTarget;
|
|
|
|
extern Target TheSparcV9Target;
|
2015-04-29 20:30:57 +00:00
|
|
|
extern Target TheSparcelTarget;
|
2011-07-14 20:59:42 +00:00
|
|
|
|
2014-01-05 02:13:48 +00:00
|
|
|
MCCodeEmitter *createSparcMCCodeEmitter(const MCInstrInfo &MCII,
|
|
|
|
const MCRegisterInfo &MRI,
|
|
|
|
MCContext &Ctx);
|
2015-04-29 20:30:57 +00:00
|
|
|
MCAsmBackend *createSparcAsmBackend(const Target &T, const MCRegisterInfo &MRI,
|
|
|
|
StringRef TT, StringRef CPU);
|
2015-04-14 22:14:34 +00:00
|
|
|
MCObjectWriter *createSparcELFObjectWriter(raw_pwrite_stream &OS, bool Is64Bit,
|
2015-04-29 20:30:57 +00:00
|
|
|
bool IsLIttleEndian, uint8_t OSABI);
|
2011-07-14 20:59:42 +00:00
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
// Defines symbolic names for Sparc registers. This defines a mapping from
|
|
|
|
// register name to register number.
|
|
|
|
//
|
|
|
|
#define GET_REGINFO_ENUM
|
|
|
|
#include "SparcGenRegisterInfo.inc"
|
|
|
|
|
|
|
|
// Defines symbolic names for the Sparc instructions.
|
|
|
|
//
|
|
|
|
#define GET_INSTRINFO_ENUM
|
|
|
|
#include "SparcGenInstrInfo.inc"
|
|
|
|
|
|
|
|
#define GET_SUBTARGETINFO_ENUM
|
|
|
|
#include "SparcGenSubtargetInfo.inc"
|
|
|
|
|
|
|
|
#endif
|