1 //===-- SparcMCTargetDesc.h - Sparc Target Descriptions ---------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file provides Sparc specific target descriptions.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_SPARC_MCTARGETDESC_SPARCMCTARGETDESC_H
15 #define LLVM_LIB_TARGET_SPARC_MCTARGETDESC_SPARCMCTARGETDESC_H
17 #include "llvm/Support/DataTypes.h"
26 class MCSubtargetInfo;
30 class raw_pwrite_stream;
33 extern Target TheSparcTarget;
34 extern Target TheSparcV9Target;
35 extern Target TheSparcelTarget;
37 MCCodeEmitter *createSparcMCCodeEmitter(const MCInstrInfo &MCII,
38 const MCRegisterInfo &MRI,
40 MCAsmBackend *createSparcAsmBackend(const Target &T, const MCRegisterInfo &MRI,
41 const Triple &TT, StringRef CPU);
42 MCObjectWriter *createSparcELFObjectWriter(raw_pwrite_stream &OS, bool Is64Bit,
43 bool IsLIttleEndian, uint8_t OSABI);
44 } // End llvm namespace
46 // Defines symbolic names for Sparc registers. This defines a mapping from
47 // register name to register number.
49 #define GET_REGINFO_ENUM
50 #include "SparcGenRegisterInfo.inc"
52 // Defines symbolic names for the Sparc instructions.
54 #define GET_INSTRINFO_ENUM
55 #include "SparcGenInstrInfo.inc"
57 #define GET_SUBTARGETINFO_ENUM
58 #include "SparcGenSubtargetInfo.inc"