LLVM  3.7.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 Target;
28 class Triple;
29 class StringRef;
30 class raw_pwrite_stream;
32 
33 extern Target TheSparcTarget;
36 
38  const MCRegisterInfo &MRI,
39  MCContext &Ctx);
41  const Triple &TT, StringRef CPU);
43  bool IsLIttleEndian, uint8_t OSABI);
44 } // End llvm namespace
45 
46 // Defines symbolic names for Sparc registers. This defines a mapping from
47 // register name to register number.
48 //
49 #define GET_REGINFO_ENUM
50 #include "SparcGenRegisterInfo.inc"
51 
52 // Defines symbolic names for the Sparc instructions.
53 //
54 #define GET_INSTRINFO_ENUM
55 #include "SparcGenInstrInfo.inc"
56 
57 #define GET_SUBTARGETINFO_ENUM
58 #include "SparcGenSubtargetInfo.inc"
59 
60 #endif
MCCodeEmitter * createSparcMCCodeEmitter(const MCInstrInfo &MCII, const MCRegisterInfo &MRI, MCContext &Ctx)
Defines the object file and target independent interfaces used by the assembler backend to write nati...
MCObjectWriter * createSparcELFObjectWriter(raw_pwrite_stream &OS, bool Is64Bit, bool IsLIttleEndian, uint8_t OSABI)
Target TheSparcTarget
MCAsmBackend * createSparcAsmBackend(const Target &T, const MCRegisterInfo &MRI, const Triple &TT, StringRef CPU)
Context object for machine code objects.
Definition: MCContext.h:48
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
MCCodeEmitter - Generic instruction encoding interface.
Definition: MCCodeEmitter.h:23
Interface to description of machine instruction set.
Definition: MCInstrInfo.h:24
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:44
Target - Wrapper for Target specific information.
Target TheSparcV9Target
An abstract base class for streams implementations that also support a pwrite operation.
Definition: raw_ostream.h:321
Target TheSparcelTarget
Generic interface to target specific assembler backends.
Definition: MCAsmBackend.h:34
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:38
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:40