Home | History | Annotate | Download | only in MCTargetDesc
      1 //===-- PPCMCTargetDesc.h - PowerPC 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 PowerPC specific target descriptions.
     11 //
     12 //===----------------------------------------------------------------------===//
     13 
     14 #ifndef PPCMCTARGETDESC_H
     15 #define PPCMCTARGETDESC_H
     16 
     17 namespace llvm {
     18 class MCAsmBackend;
     19 class MCCodeEmitter;
     20 class MCContext;
     21 class MCInstrInfo;
     22 class MCSubtargetInfo;
     23 class Target;
     24 class StringRef;
     25 
     26 extern Target ThePPC32Target;
     27 extern Target ThePPC64Target;
     28 
     29 MCCodeEmitter *createPPCMCCodeEmitter(const MCInstrInfo &MCII,
     30                                       const MCSubtargetInfo &STI,
     31                                       MCContext &Ctx);
     32 
     33 MCAsmBackend *createPPCAsmBackend(const Target &T, StringRef TT);
     34 
     35 } // End llvm namespace
     36 
     37 // Defines symbolic names for PowerPC registers.  This defines a mapping from
     38 // register name to register number.
     39 //
     40 #define GET_REGINFO_ENUM
     41 #include "PPCGenRegisterInfo.inc"
     42 
     43 // Defines symbolic names for the PowerPC instructions.
     44 //
     45 #define GET_INSTRINFO_ENUM
     46 #include "PPCGenInstrInfo.inc"
     47 
     48 #define GET_SUBTARGETINFO_ENUM
     49 #include "PPCGenSubtargetInfo.inc"
     50 
     51 #endif
     52