LLVM 20.0.0git
AVRMCTargetDesc.h
Go to the documentation of this file.
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
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.
36 MCContext &Ctx);
37
38/// Creates an assembly backend for AVR.
40 const MCRegisterInfo &MRI,
41 const llvm::MCTargetOptions &TO);
42
43/// Creates an ELF object writer for AVR.
44std::unique_ptr<MCObjectTargetWriter> createAVRELFObjectWriter(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#define GET_INSTRINFO_MC_HELPER_DECLS
53#include "AVRGenInstrInfo.inc"
54
55#define GET_SUBTARGETINFO_ENUM
56#include "AVRGenSubtargetInfo.inc"
57
58#endif // LLVM_AVR_MCTARGET_DESC_H
unsigned const MachineRegisterInfo * MRI
Generic interface to target specific assembler backends.
Definition: MCAsmBackend.h:42
MCCodeEmitter - Generic instruction encoding interface.
Definition: MCCodeEmitter.h:21
Context object for machine code objects.
Definition: MCContext.h:83
Interface to description of machine instruction set.
Definition: MCInstrInfo.h:26
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
Generic base class for all target subtargets.
Target - Wrapper for Target specific information.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
MCInstrInfo * createAVRMCInstrInfo()
MCCodeEmitter * createAVRMCCodeEmitter(const MCInstrInfo &MCII, MCContext &Ctx)
Creates a machine code emitter for AVR.
std::unique_ptr< MCObjectTargetWriter > createAVRELFObjectWriter(uint8_t OSABI)
Creates an ELF object writer for AVR.
MCAsmBackend * createAVRAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const llvm::MCTargetOptions &TO)
Creates an assembly backend for AVR.