LLVM  6.0.0svn
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 #include <memory>
20 
21 namespace llvm {
22 class MCAsmBackend;
23 class MCCodeEmitter;
24 class MCContext;
25 class MCInstrInfo;
26 class MCObjectWriter;
27 class MCRegisterInfo;
28 class MCSubtargetInfo;
29 class MCTargetOptions;
30 class Target;
31 class Triple;
32 class StringRef;
33 class raw_pwrite_stream;
34 class raw_ostream;
35 
36 Target &getTheSparcTarget();
37 Target &getTheSparcV9Target();
38 Target &getTheSparcelTarget();
39 
40 MCCodeEmitter *createSparcMCCodeEmitter(const MCInstrInfo &MCII,
41  const MCRegisterInfo &MRI,
42  MCContext &Ctx);
43 MCAsmBackend *createSparcAsmBackend(const Target &T, const MCRegisterInfo &MRI,
44  const Triple &TT, StringRef CPU,
45  const MCTargetOptions &Options);
46 std::unique_ptr<MCObjectWriter>
47 createSparcELFObjectWriter(raw_pwrite_stream &OS, bool Is64Bit,
48  bool IsLIttleEndian, uint8_t OSABI);
49 } // End llvm namespace
50 
51 // Defines symbolic names for Sparc registers. This defines a mapping from
52 // register name to register number.
53 //
54 #define GET_REGINFO_ENUM
55 #include "SparcGenRegisterInfo.inc"
56 
57 // Defines symbolic names for the Sparc instructions.
58 //
59 #define GET_INSTRINFO_ENUM
60 #include "SparcGenInstrInfo.inc"
61 
62 #define GET_SUBTARGETINFO_ENUM
63 #include "SparcGenSubtargetInfo.inc"
64 
65 #endif
MCCodeEmitter * createSparcMCCodeEmitter(const MCInstrInfo &MCII, const MCRegisterInfo &MRI, MCContext &Ctx)
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
std::unique_ptr< 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()
Target & getTheSparcV9Target()