Home | History | Annotate | Download | only in MCTargetDesc
      1 //===-- AMDGPUMCTargetDesc.h - AMDGPU 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 /// \file
     11 /// \brief Provides AMDGPU specific target descriptions.
     12 //
     13 //===----------------------------------------------------------------------===//
     14 //
     15 
     16 #ifndef AMDGPUMCTARGETDESC_H
     17 #define AMDGPUMCTARGETDESC_H
     18 
     19 #include "llvm/ADT/StringRef.h"
     20 
     21 namespace llvm {
     22 class MCAsmBackend;
     23 class MCCodeEmitter;
     24 class MCContext;
     25 class MCInstrInfo;
     26 class MCObjectWriter;
     27 class MCRegisterInfo;
     28 class MCSubtargetInfo;
     29 class Target;
     30 class raw_ostream;
     31 
     32 extern Target TheAMDGPUTarget;
     33 
     34 MCCodeEmitter *createR600MCCodeEmitter(const MCInstrInfo &MCII,
     35                                        const MCRegisterInfo &MRI,
     36                                        const MCSubtargetInfo &STI);
     37 
     38 MCCodeEmitter *createSIMCCodeEmitter(const MCInstrInfo &MCII,
     39                                      const MCRegisterInfo &MRI,
     40                                      const MCSubtargetInfo &STI,
     41                                      MCContext &Ctx);
     42 
     43 MCAsmBackend *createAMDGPUAsmBackend(const Target &T, StringRef TT,
     44                                      StringRef CPU);
     45 
     46 MCObjectWriter *createAMDGPUELFObjectWriter(raw_ostream &OS);
     47 } // End llvm namespace
     48 
     49 #define GET_REGINFO_ENUM
     50 #include "AMDGPUGenRegisterInfo.inc"
     51 
     52 #define GET_INSTRINFO_ENUM
     53 #include "AMDGPUGenInstrInfo.inc"
     54 
     55 #define GET_SUBTARGETINFO_ENUM
     56 #include "AMDGPUGenSubtargetInfo.inc"
     57 
     58 #endif // AMDGPUMCTARGETDESC_H
     59