1 //===-- ARMMCTargetDesc.h - ARM Target Descriptions -------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file provides ARM specific target descriptions.
12 //===----------------------------------------------------------------------===//
14 #ifndef ARMMCTARGETDESC_H
15 #define ARMMCTARGETDESC_H
17 #include "llvm/Support/DataTypes.h"
21 class formatted_raw_ostream;
29 class MCSubtargetInfo;
31 class MCRelocationInfo;
36 extern Target TheARMTarget, TheThumbTarget;
39 std::string ParseARMTriple(StringRef TT, StringRef CPU);
41 /// createARMMCSubtargetInfo - Create a ARM MCSubtargetInfo instance.
42 /// This is exposed so Asm parser, etc. do not need to go through
44 MCSubtargetInfo *createARMMCSubtargetInfo(StringRef TT, StringRef CPU,
48 MCStreamer *createMCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
49 bool isVerboseAsm, bool useLoc, bool useCFI,
50 bool useDwarfDirectory,
51 MCInstPrinter *InstPrint, MCCodeEmitter *CE,
52 MCAsmBackend *TAB, bool ShowInst);
54 MCCodeEmitter *createARMMCCodeEmitter(const MCInstrInfo &MCII,
55 const MCRegisterInfo &MRI,
56 const MCSubtargetInfo &STI,
59 MCAsmBackend *createARMAsmBackend(const Target &T, const MCRegisterInfo &MRI,
60 StringRef TT, StringRef CPU);
62 /// createARMELFObjectWriter - Construct an ELF Mach-O object writer.
63 MCObjectWriter *createARMELFObjectWriter(raw_ostream &OS,
66 /// createARMMachObjectWriter - Construct an ARM Mach-O object writer.
67 MCObjectWriter *createARMMachObjectWriter(raw_ostream &OS,
73 /// createARMMachORelocationInfo - Construct ARM Mach-O relocation info.
74 MCRelocationInfo *createARMMachORelocationInfo(MCContext &Ctx);
75 } // End llvm namespace
77 // Defines symbolic names for ARM registers. This defines a mapping from
78 // register name to register number.
80 #define GET_REGINFO_ENUM
81 #include "ARMGenRegisterInfo.inc"
83 // Defines symbolic names for the ARM instructions.
85 #define GET_INSTRINFO_ENUM
86 #include "ARMGenInstrInfo.inc"
88 #define GET_SUBTARGETINFO_ENUM
89 #include "ARMGenSubtargetInfo.inc"