LLVM  9.0.0svn
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 StringRef;
31 class Target;
32 class Triple;
33 class raw_pwrite_stream;
34 
35 Target &getTheAVRTarget();
36 
37 MCInstrInfo *createAVRMCInstrInfo();
38 
39 /// Creates a machine code emitter for AVR.
40 MCCodeEmitter *createAVRMCCodeEmitter(const MCInstrInfo &MCII,
41  const MCRegisterInfo &MRI,
42  MCContext &Ctx);
43 
44 /// Creates an assembly backend for AVR.
45 MCAsmBackend *createAVRAsmBackend(const Target &T, const MCSubtargetInfo &STI,
46  const MCRegisterInfo &MRI,
47  const llvm::MCTargetOptions &TO);
48 
49 /// Creates an ELF object writer for AVR.
50 std::unique_ptr<MCObjectTargetWriter> createAVRELFObjectWriter(uint8_t OSABI);
51 
52 } // end namespace llvm
53 
54 #define GET_REGINFO_ENUM
55 #include "AVRGenRegisterInfo.inc"
56 
57 #define GET_INSTRINFO_ENUM
58 #include "AVRGenInstrInfo.inc"
59 
60 #define GET_SUBTARGETINFO_ENUM
61 #include "AVRGenSubtargetInfo.inc"
62 
63 #endif // LLVM_AVR_MCTARGET_DESC_H
std::unique_ptr< MCObjectTargetWriter > createAVRELFObjectWriter(uint8_t OSABI)
Creates an ELF object writer for AVR.
This class represents lattice values for constants.
Definition: AllocatorList.h:23
MCCodeEmitter * createAVRMCCodeEmitter(const MCInstrInfo &MCII, const MCRegisterInfo &MRI, MCContext &Ctx)
Creates a machine code emitter for AVR.
MCInstrInfo * createAVRMCInstrInfo()
Target & getTheAVRTarget()
unsigned const MachineRegisterInfo * MRI
MCAsmBackend * createAVRAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const llvm::MCTargetOptions &TO)
Creates an assembly backend for AVR.