LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ARMMCTargetDesc.h
Go to the documentation of this file.
1 //===-- ARMMCTargetDesc.h - ARM Target Descriptions -------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file provides ARM specific target descriptions.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef ARMMCTARGETDESC_H
15 #define ARMMCTARGETDESC_H
16 
17 #include "llvm/Support/DataTypes.h"
18 #include <string>
19 
20 namespace llvm {
21 class formatted_raw_ostream;
22 class MCAsmBackend;
23 class MCCodeEmitter;
24 class MCContext;
25 class MCInstrInfo;
26 class MCInstPrinter;
27 class MCObjectWriter;
28 class MCRegisterInfo;
29 class MCSubtargetInfo;
30 class MCStreamer;
31 class MCRelocationInfo;
32 class StringRef;
33 class Target;
34 class raw_ostream;
35 
36 extern Target TheARMTarget, TheThumbTarget;
37 
38 namespace ARM_MC {
39  std::string ParseARMTriple(StringRef TT, StringRef CPU);
40 
41  /// createARMMCSubtargetInfo - Create a ARM MCSubtargetInfo instance.
42  /// This is exposed so Asm parser, etc. do not need to go through
43  /// TargetRegistry.
45  StringRef FS);
46 }
47 
49  bool isVerboseAsm, bool useLoc, bool useCFI,
50  bool useDwarfDirectory,
51  MCInstPrinter *InstPrint, MCCodeEmitter *CE,
52  MCAsmBackend *TAB, bool ShowInst);
53 
55  const MCRegisterInfo &MRI,
56  const MCSubtargetInfo &STI,
57  MCContext &Ctx);
58 
60  StringRef TT, StringRef CPU);
61 
62 /// createARMELFObjectWriter - Construct an ELF Mach-O object writer.
64  uint8_t OSABI);
65 
66 /// createARMMachObjectWriter - Construct an ARM Mach-O object writer.
68  bool Is64Bit,
69  uint32_t CPUType,
70  uint32_t CPUSubtype);
71 
72 
73 /// createARMMachORelocationInfo - Construct ARM Mach-O relocation info.
75 } // End llvm namespace
76 
77 // Defines symbolic names for ARM registers. This defines a mapping from
78 // register name to register number.
79 //
80 #define GET_REGINFO_ENUM
81 #include "ARMGenRegisterInfo.inc"
82 
83 // Defines symbolic names for the ARM instructions.
84 //
85 #define GET_INSTRINFO_ENUM
86 #include "ARMGenInstrInfo.inc"
87 
88 #define GET_SUBTARGETINFO_ENUM
89 #include "ARMGenSubtargetInfo.inc"
90 
91 #endif
MCStreamer * createMCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS, bool isVerboseAsm, bool useLoc, bool useCFI, bool useDwarfDirectory, MCInstPrinter *InstPrint, MCCodeEmitter *CE, MCAsmBackend *TAB, bool ShowInst)
MCRelocationInfo * createARMMachORelocationInfo(MCContext &Ctx)
createARMMachORelocationInfo - Construct ARM Mach-O relocation info.
MCCodeEmitter * createARMMCCodeEmitter(const MCInstrInfo &MCII, const MCRegisterInfo &MRI, const MCSubtargetInfo &STI, MCContext &Ctx)
Target TheThumbTarget
MCCodeEmitter - Generic instruction encoding interface.
Definition: MCCodeEmitter.h:22
Create MCExprs from relocations found in an object file.
std::string ParseARMTriple(StringRef TT, StringRef CPU)
MCObjectWriter * createARMMachObjectWriter(raw_ostream &OS, bool Is64Bit, uint32_t CPUType, uint32_t CPUSubtype)
createARMMachObjectWriter - Construct an ARM Mach-O object writer.
MCSubtargetInfo * createARMMCSubtargetInfo(StringRef TT, StringRef CPU, StringRef FS)
Target TheARMTarget
MCObjectWriter * createARMELFObjectWriter(raw_ostream &OS, uint8_t OSABI)
createARMELFObjectWriter - Construct an ELF Mach-O object writer.
MCAsmBackend * createARMAsmBackend(const Target &T, const MCRegisterInfo &MRI, StringRef TT, StringRef CPU)
MCAsmBackend - Generic interface to target specific assembler backends.
Definition: MCAsmBackend.h:34
const MCRegisterInfo & MRI