LLVM  15.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 
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  MCContext &Ctx);
37 
38 /// Creates an assembly backend for AVR.
39 MCAsmBackend *createAVRAsmBackend(const Target &T, const MCSubtargetInfo &STI,
40  const MCRegisterInfo &MRI,
41  const llvm::MCTargetOptions &TO);
42 
43 /// Creates an ELF object writer for AVR.
44 std::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 #include "AVRGenInstrInfo.inc"
53 
54 #define GET_SUBTARGETINFO_ENUM
55 #include "AVRGenSubtargetInfo.inc"
56 
57 #endif // LLVM_AVR_MCTARGET_DESC_H
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
llvm::createAVRMCCodeEmitter
MCCodeEmitter * createAVRMCCodeEmitter(const MCInstrInfo &MCII, MCContext &Ctx)
Creates a machine code emitter for AVR.
llvm::AMDGPU::Exp::Target
Target
Definition: SIDefines.h:855
T
#define T
Definition: Mips16ISelLowering.cpp:341
llvm::createAVRELFObjectWriter
std::unique_ptr< MCObjectTargetWriter > createAVRELFObjectWriter(uint8_t OSABI)
Creates an ELF object writer for AVR.
Definition: AVRELFObjectWriter.cpp:153
llvm::createAVRMCInstrInfo
MCInstrInfo * createAVRMCInstrInfo()
Definition: AVRMCTargetDesc.cpp:40
llvm::createAVRAsmBackend
MCAsmBackend * createAVRAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const llvm::MCTargetOptions &TO)
Creates an assembly backend for AVR.
Definition: AVRAsmBackend.cpp:486
llvm::MCTargetOptions
Definition: MCTargetOptions.h:42
MRI
unsigned const MachineRegisterInfo * MRI
Definition: AArch64AdvSIMDScalarPass.cpp:105
DataTypes.h