LLVM  4.0.0
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 namespace llvm {
20 
21 class MCAsmBackend;
22 class MCCodeEmitter;
23 class MCContext;
24 class MCInstrInfo;
25 class MCObjectWriter;
26 class MCRegisterInfo;
27 class MCTargetOptions;
28 class StringRef;
29 class Target;
30 class Triple;
31 class raw_pwrite_stream;
32 
34 
35 /// Creates a machine code emitter for AVR.
36 MCCodeEmitter *createAVRMCCodeEmitter(const MCInstrInfo &MCII,
37  const MCRegisterInfo &MRI,
38  MCContext &Ctx);
39 
40 /// Creates an assembly backend for AVR.
41 MCAsmBackend *createAVRAsmBackend(const Target &T, const MCRegisterInfo &MRI,
42  const Triple &TT, StringRef CPU,
43  const llvm::MCTargetOptions &TO);
44 
45 /// Creates an ELF object writer for AVR.
46 MCObjectWriter *createAVRELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI);
47 
48 } // end namespace llvm
49 
50 #define GET_REGINFO_ENUM
51 #include "AVRGenRegisterInfo.inc"
52 
53 #define GET_INSTRINFO_ENUM
54 #include "AVRGenInstrInfo.inc"
55 
56 #define GET_SUBTARGETINFO_ENUM
57 #include "AVRGenSubtargetInfo.inc"
58 
59 #endif // LLVM_AVR_MCTARGET_DESC_H
Target & getTheAVRTarget()
MCCodeEmitter * createAVRMCCodeEmitter(const MCInstrInfo &MCII, const MCRegisterInfo &MRI, MCContext &Ctx)
Creates a machine code emitter for AVR.
unsigned const MachineRegisterInfo * MRI
static const char * Target
MCObjectWriter * createAVRELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI)
Creates an ELF object writer for AVR.
MCAsmBackend * createAVRAsmBackend(const Target &T, const MCRegisterInfo &MRI, const Triple &TT, StringRef CPU, const llvm::MCTargetOptions &TO)
Creates an assembly backend for AVR.