Home | History | Annotate | Download | only in MCTargetDesc
      1 //===-- AArch64MCTargetDesc.h - AArch64 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 AArch64 specific target descriptions.
     11 //
     12 //===----------------------------------------------------------------------===//
     13 
     14 #ifndef LLVM_AARCH64MCTARGETDESC_H
     15 #define LLVM_AARCH64MCTARGETDESC_H
     16 
     17 #include "llvm/Support/DataTypes.h"
     18 
     19 namespace llvm {
     20 class MCAsmBackend;
     21 class MCCodeEmitter;
     22 class MCContext;
     23 class MCInstrInfo;
     24 class MCObjectWriter;
     25 class MCRegisterInfo;
     26 class MCSubtargetInfo;
     27 class StringRef;
     28 class Target;
     29 class raw_ostream;
     30 
     31 extern Target TheAArch64Target;
     32 
     33 namespace AArch64_MC {
     34   MCSubtargetInfo *createAArch64MCSubtargetInfo(StringRef TT, StringRef CPU,
     35                                                 StringRef FS);
     36 }
     37 
     38 MCCodeEmitter *createAArch64MCCodeEmitter(const MCInstrInfo &MCII,
     39                                           const MCRegisterInfo &MRI,
     40                                           const MCSubtargetInfo &STI,
     41                                           MCContext &Ctx);
     42 
     43 MCObjectWriter *createAArch64ELFObjectWriter(raw_ostream &OS,
     44                                              uint8_t OSABI);
     45 
     46 MCAsmBackend *createAArch64AsmBackend(const Target &T, StringRef TT,
     47                                       StringRef CPU);
     48 
     49 } // End llvm namespace
     50 
     51 // Defines symbolic names for AArch64 registers.  This defines a mapping from
     52 // register name to register number.
     53 //
     54 #define GET_REGINFO_ENUM
     55 #include "AArch64GenRegisterInfo.inc"
     56 
     57 // Defines symbolic names for the AArch64 instructions.
     58 //
     59 #define GET_INSTRINFO_ENUM
     60 #include "AArch64GenInstrInfo.inc"
     61 
     62 #define GET_SUBTARGETINFO_ENUM
     63 #include "AArch64GenSubtargetInfo.inc"
     64 
     65 #endif
     66