LLVM  6.0.0svn
LanaiMCTargetDesc.h
Go to the documentation of this file.
1 //===-- LanaiMCTargetDesc.h - Lanai 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 Lanai specific target descriptions.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIMCTARGETDESC_H
15 #define LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIMCTARGETDESC_H
16 
17 #include "llvm/MC/MCRegisterInfo.h"
19 #include "llvm/Support/DataTypes.h"
20 
21 namespace llvm {
22 class MCAsmBackend;
23 class MCCodeEmitter;
24 class MCContext;
25 class MCInstrInfo;
26 class MCInstrAnalysis;
27 class MCObjectWriter;
28 class MCRelocationInfo;
29 class MCSubtargetInfo;
30 class Target;
31 class Triple;
32 class StringRef;
33 class raw_pwrite_stream;
34 
35 Target &getTheLanaiTarget();
36 
37 MCCodeEmitter *createLanaiMCCodeEmitter(const MCInstrInfo &MCII,
38  const MCRegisterInfo &MRI,
39  MCContext &Ctx);
40 
41 MCAsmBackend *createLanaiAsmBackend(const Target &T, const MCRegisterInfo &MRI,
42  const Triple &TheTriple, StringRef CPU,
43  const MCTargetOptions &Options);
44 
45 std::unique_ptr<MCObjectWriter>
46 createLanaiELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI);
47 } // namespace llvm
48 
49 // Defines symbolic names for Lanai registers. This defines a mapping from
50 // register name to register number.
51 #define GET_REGINFO_ENUM
52 #include "LanaiGenRegisterInfo.inc"
53 
54 // Defines symbolic names for the Lanai instructions.
55 #define GET_INSTRINFO_ENUM
56 #include "LanaiGenInstrInfo.inc"
57 
58 #define GET_SUBTARGETINFO_ENUM
59 #include "LanaiGenSubtargetInfo.inc"
60 
61 #endif // LLVM_LIB_TARGET_LANAI_MCTARGETDESC_LANAIMCTARGETDESC_H
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
Target & getTheLanaiTarget()
MCCodeEmitter * createLanaiMCCodeEmitter(const MCInstrInfo &MCII, const MCRegisterInfo &MRI, MCContext &Ctx)
unsigned const MachineRegisterInfo * MRI
MCAsmBackend * createLanaiAsmBackend(const Target &T, const MCRegisterInfo &MRI, const Triple &TheTriple, StringRef CPU, const MCTargetOptions &Options)
std::unique_ptr< MCObjectWriter > createLanaiELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI)