LLVM  4.0.0
SparcMCTargetDesc.h
Go to the documentation of this file.
1 //===-- SparcMCTargetDesc.h - Sparc 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 Sparc specific target descriptions.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_SPARC_MCTARGETDESC_SPARCMCTARGETDESC_H
15 #define LLVM_LIB_TARGET_SPARC_MCTARGETDESC_SPARCMCTARGETDESC_H
16 
17 #include "llvm/Support/DataTypes.h"
18 
19 namespace llvm {
20 class MCAsmBackend;
21 class MCCodeEmitter;
22 class MCContext;
23 class MCInstrInfo;
24 class MCObjectWriter;
25 class MCRegisterInfo;
26 class MCSubtargetInfo;
27 class MCTargetOptions;
28 class Target;
29 class Triple;
30 class StringRef;
31 class raw_pwrite_stream;
32 class raw_ostream;
33 
37 
38 MCCodeEmitter *createSparcMCCodeEmitter(const MCInstrInfo &MCII,
39  const MCRegisterInfo &MRI,
40  MCContext &Ctx);
41 MCAsmBackend *createSparcAsmBackend(const Target &T, const MCRegisterInfo &MRI,
42  const Triple &TT, StringRef CPU,
43  const MCTargetOptions &Options);
44 MCObjectWriter *createSparcELFObjectWriter(raw_pwrite_stream &OS, bool Is64Bit,
45  bool IsLIttleEndian, uint8_t OSABI);
46 } // End llvm namespace
47 
48 // Defines symbolic names for Sparc registers. This defines a mapping from
49 // register name to register number.
50 //
51 #define GET_REGINFO_ENUM
52 #include "SparcGenRegisterInfo.inc"
53 
54 // Defines symbolic names for the Sparc instructions.
55 //
56 #define GET_INSTRINFO_ENUM
57 #include "SparcGenInstrInfo.inc"
58 
59 #define GET_SUBTARGETINFO_ENUM
60 #include "SparcGenSubtargetInfo.inc"
61 
62 #endif
MCCodeEmitter * createSparcMCCodeEmitter(const MCInstrInfo &MCII, const MCRegisterInfo &MRI, MCContext &Ctx)
MCObjectWriter * createSparcELFObjectWriter(raw_pwrite_stream &OS, bool Is64Bit, bool IsLIttleEndian, uint8_t OSABI)
Target & getTheSparcTarget()
MCAsmBackend * createSparcAsmBackend(const Target &T, const MCRegisterInfo &MRI, const Triple &TT, StringRef CPU, const MCTargetOptions &Options)
unsigned const MachineRegisterInfo * MRI
Target & getTheSparcelTarget()
static const char * Target
Target & getTheSparcV9Target()