Home | History | Annotate | Download | only in MCTargetDesc
      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 StringRef;
     28 class Target;
     29 class Triple;
     30 class raw_pwrite_stream;
     31 
     32 extern Target TheAVRTarget;
     33 
     34 /// Creates a machine code emitter for AVR.
     35 MCCodeEmitter *createAVRMCCodeEmitter(const MCInstrInfo &MCII,
     36                                       const MCRegisterInfo &MRI,
     37                                       MCContext &Ctx);
     38 
     39 /// Creates an assembly backend for AVR.
     40 MCAsmBackend *createAVRAsmBackend(const Target &T, const MCRegisterInfo &MRI,
     41                                   const Triple &TT, StringRef CPU);
     42 
     43 /// Creates an ELF object writer for AVR.
     44 MCObjectWriter *createAVRELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI);
     45 
     46 } // end namespace llvm
     47 
     48 #define GET_REGINFO_ENUM
     49 #include "AVRGenRegisterInfo.inc"
     50 
     51 #define GET_INSTRINFO_ENUM
     52 #include "AVRGenInstrInfo.inc"
     53 
     54 #define GET_SUBTARGETINFO_ENUM
     55 #include "AVRGenSubtargetInfo.inc"
     56 
     57 #endif // LLVM_AVR_MCTARGET_DESC_H
     58