Evan Cheng | c60f9b7 | 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 | |
| 17 | namespace llvm { |
Evan Cheng | 78c10ee | 2011-07-25 23:24:55 +0000 | [diff] [blame^] | 18 | class MCAsmBackend; |
Evan Cheng | 966aeb5 | 2011-07-25 19:53:23 +0000 | [diff] [blame] | 19 | class MCCodeEmitter; |
| 20 | class MCContext; |
| 21 | class MCInstrInfo; |
Evan Cheng | c60f9b7 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 22 | class MCSubtargetInfo; |
| 23 | class Target; |
| 24 | class StringRef; |
| 25 | |
| 26 | extern Target ThePPC32Target; |
| 27 | extern Target ThePPC64Target; |
| 28 | |
Evan Cheng | 966aeb5 | 2011-07-25 19:53:23 +0000 | [diff] [blame] | 29 | MCCodeEmitter *createPPCMCCodeEmitter(const MCInstrInfo &MCII, |
| 30 | const MCSubtargetInfo &STI, |
| 31 | MCContext &Ctx); |
| 32 | |
Evan Cheng | 78c10ee | 2011-07-25 23:24:55 +0000 | [diff] [blame^] | 33 | MCAsmBackend *createPPCAsmBackend(const Target &T, StringRef TT); |
Evan Cheng | 966aeb5 | 2011-07-25 19:53:23 +0000 | [diff] [blame] | 34 | |
Evan Cheng | c60f9b7 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 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 |