Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 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 | |
Rafael Espindola | 38a400d | 2011-12-22 01:57:09 +0000 | [diff] [blame] | 17 | #include "llvm/Support/DataTypes.h" |
| 18 | |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 19 | namespace llvm { |
Evan Cheng | 5928e69 | 2011-07-25 23:24:55 +0000 | [diff] [blame] | 20 | class MCAsmBackend; |
Evan Cheng | 61d4a20 | 2011-07-25 19:53:23 +0000 | [diff] [blame] | 21 | class MCCodeEmitter; |
| 22 | class MCContext; |
| 23 | class MCInstrInfo; |
Rafael Espindola | 38a400d | 2011-12-22 01:57:09 +0000 | [diff] [blame] | 24 | class MCObjectWriter; |
Jim Grosbach | c3b0427 | 2012-05-15 17:35:52 +0000 | [diff] [blame^] | 25 | class MCRegisterInfo; |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 26 | class MCSubtargetInfo; |
| 27 | class Target; |
| 28 | class StringRef; |
Rafael Espindola | 38a400d | 2011-12-22 01:57:09 +0000 | [diff] [blame] | 29 | class raw_ostream; |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 30 | |
| 31 | extern Target ThePPC32Target; |
| 32 | extern Target ThePPC64Target; |
| 33 | |
Evan Cheng | 61d4a20 | 2011-07-25 19:53:23 +0000 | [diff] [blame] | 34 | MCCodeEmitter *createPPCMCCodeEmitter(const MCInstrInfo &MCII, |
Jim Grosbach | c3b0427 | 2012-05-15 17:35:52 +0000 | [diff] [blame^] | 35 | const MCRegisterInfo &MRI, |
Evan Cheng | 61d4a20 | 2011-07-25 19:53:23 +0000 | [diff] [blame] | 36 | const MCSubtargetInfo &STI, |
| 37 | MCContext &Ctx); |
| 38 | |
Evan Cheng | 5928e69 | 2011-07-25 23:24:55 +0000 | [diff] [blame] | 39 | MCAsmBackend *createPPCAsmBackend(const Target &T, StringRef TT); |
Rafael Espindola | 38a400d | 2011-12-22 01:57:09 +0000 | [diff] [blame] | 40 | |
| 41 | /// createPPCELFObjectWriter - Construct an PPC ELF object writer. |
| 42 | MCObjectWriter *createPPCELFObjectWriter(raw_ostream &OS, |
| 43 | bool Is64Bit, |
| 44 | uint8_t OSABI); |
Evan Cheng | bc153d4 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 45 | } // End llvm namespace |
| 46 | |
| 47 | // Defines symbolic names for PowerPC registers. This defines a mapping from |
| 48 | // register name to register number. |
| 49 | // |
| 50 | #define GET_REGINFO_ENUM |
| 51 | #include "PPCGenRegisterInfo.inc" |
| 52 | |
| 53 | // Defines symbolic names for the PowerPC instructions. |
| 54 | // |
| 55 | #define GET_INSTRINFO_ENUM |
| 56 | #include "PPCGenInstrInfo.inc" |
| 57 | |
| 58 | #define GET_SUBTARGETINFO_ENUM |
| 59 | #include "PPCGenSubtargetInfo.inc" |
| 60 | |
| 61 | #endif |