Home | History | Annotate | Line # | Download | only in MCTargetDesc
      1 //===-- AVRMCTargetDesc.h - AVR Target Descriptions -------------*- C++ -*-===//
      2 //
      3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
      4 // See https://llvm.org/LICENSE.txt for license information.
      5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
      6 //
      7 //===----------------------------------------------------------------------===//
      8 //
      9 // This file provides AVR specific target descriptions.
     10 //
     11 //===----------------------------------------------------------------------===//
     12 
     13 #ifndef LLVM_AVR_MCTARGET_DESC_H
     14 #define LLVM_AVR_MCTARGET_DESC_H
     15 
     16 #include "llvm/Support/DataTypes.h"
     17 
     18 #include <memory>
     19 
     20 namespace llvm {
     21 
     22 class MCAsmBackend;
     23 class MCCodeEmitter;
     24 class MCContext;
     25 class MCInstrInfo;
     26 class MCObjectTargetWriter;
     27 class MCRegisterInfo;
     28 class MCSubtargetInfo;
     29 class MCTargetOptions;
     30 class Target;
     31 
     32 MCInstrInfo *createAVRMCInstrInfo();
     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 MCSubtargetInfo &STI,
     41                                   const MCRegisterInfo &MRI,
     42                                   const llvm::MCTargetOptions &TO);
     43 
     44 /// Creates an ELF object writer for AVR.
     45 std::unique_ptr<MCObjectTargetWriter> createAVRELFObjectWriter(uint8_t OSABI);
     46 
     47 } // end namespace llvm
     48 
     49 #define GET_REGINFO_ENUM
     50 #include "AVRGenRegisterInfo.inc"
     51 
     52 #define GET_INSTRINFO_ENUM
     53 #include "AVRGenInstrInfo.inc"
     54 
     55 #define GET_SUBTARGETINFO_ENUM
     56 #include "AVRGenSubtargetInfo.inc"
     57 
     58 #endif // LLVM_AVR_MCTARGET_DESC_H
     59