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 #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 MCSubtargetInfo; 26 class Target; 27 class StringRef; 28 class raw_ostream; 29 30 extern Target ThePPC32Target; 31 extern Target ThePPC64Target; 32 33 MCCodeEmitter *createPPCMCCodeEmitter(const MCInstrInfo &MCII, 34 const MCSubtargetInfo &STI, 35 MCContext &Ctx); 36 37 MCAsmBackend *createPPCAsmBackend(const Target &T, StringRef TT); 38 39 /// createPPCELFObjectWriter - Construct an PPC ELF object writer. 40 MCObjectWriter *createPPCELFObjectWriter(raw_ostream &OS, 41 bool Is64Bit, 42 uint8_t OSABI); 43 } // End llvm namespace 44 45 // Defines symbolic names for PowerPC registers. This defines a mapping from 46 // register name to register number. 47 // 48 #define GET_REGINFO_ENUM 49 #include "PPCGenRegisterInfo.inc" 50 51 // Defines symbolic names for the PowerPC instructions. 52 // 53 #define GET_INSTRINFO_ENUM 54 #include "PPCGenInstrInfo.inc" 55 56 #define GET_SUBTARGETINFO_ENUM 57 #include "PPCGenSubtargetInfo.inc" 58 59 #endif 60