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