LLVM  6.0.0svn
AVRMCTargetDesc.h
Go to the documentation of this file.
1 //===-- AVRMCTargetDesc.h - AVR 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 AVR specific target descriptions.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_AVR_MCTARGET_DESC_H
15 #define LLVM_AVR_MCTARGET_DESC_H
16 
17 #include "llvm/Support/DataTypes.h"
18 
19 #include <memory>
20 
21 namespace llvm {
22 
23 class MCAsmBackend;
24 class MCCodeEmitter;
25 class MCContext;
26 class MCInstrInfo;
27 class MCObjectWriter;
28 class MCRegisterInfo;
29 class MCTargetOptions;
30 class StringRef;
31 class Target;
32 class Triple;
33 class raw_pwrite_stream;
34 
35 Target &getTheAVRTarget();
36 
37 /// Creates a machine code emitter for AVR.
38 MCCodeEmitter *createAVRMCCodeEmitter(const MCInstrInfo &MCII,
39  const MCRegisterInfo &MRI,
40  MCContext &Ctx);
41 
42 /// Creates an assembly backend for AVR.
43 MCAsmBackend *createAVRAsmBackend(const Target &T, const MCRegisterInfo &MRI,
44  const Triple &TT, StringRef CPU,
45  const llvm::MCTargetOptions &TO);
46 
47 /// Creates an ELF object writer for AVR.
48 std::unique_ptr<MCObjectWriter>
49 createAVRELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI);
50 
51 } // end namespace llvm
52 
53 #define GET_REGINFO_ENUM
54 #include "AVRGenRegisterInfo.inc"
55 
56 #define GET_INSTRINFO_ENUM
57 #include "AVRGenInstrInfo.inc"
58 
59 #define GET_SUBTARGETINFO_ENUM
60 #include "AVRGenSubtargetInfo.inc"
61 
62 #endif // LLVM_AVR_MCTARGET_DESC_H
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
MCCodeEmitter * createAVRMCCodeEmitter(const MCInstrInfo &MCII, const MCRegisterInfo &MRI, MCContext &Ctx)
Creates a machine code emitter for AVR.
Target & getTheAVRTarget()
std::unique_ptr< MCObjectWriter > createAVRELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI)
Creates an ELF object writer for AVR.
unsigned const MachineRegisterInfo * MRI
MCAsmBackend * createAVRAsmBackend(const Target &T, const MCRegisterInfo &MRI, const Triple &TT, StringRef CPU, const llvm::MCTargetOptions &TO)
Creates an assembly backend for AVR.