1 //===-- PPCMCTargetDesc.h - PowerPC Target Descriptions ---------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file provides PowerPC specific target descriptions.
12 //===----------------------------------------------------------------------===//
14 #ifndef PPCMCTARGETDESC_H
15 #define PPCMCTARGETDESC_H
17 // GCC #defines PPC on Linux but we use it as our namespace name
20 #include "llvm/Support/DataTypes.h"
29 class MCSubtargetInfo;
34 extern Target ThePPC32Target;
35 extern Target ThePPC64Target;
37 MCCodeEmitter *createPPCMCCodeEmitter(const MCInstrInfo &MCII,
38 const MCRegisterInfo &MRI,
39 const MCSubtargetInfo &STI,
42 MCAsmBackend *createPPCAsmBackend(const Target &T, StringRef TT, StringRef CPU);
44 /// createPPCELFObjectWriter - Construct an PPC ELF object writer.
45 MCObjectWriter *createPPCELFObjectWriter(raw_ostream &OS,
48 } // End llvm namespace
50 // Generated files will use "namespace PPC". To avoid symbol clash,
51 // undefine PPC here. PPC may be predefined on some hosts.
54 // Defines symbolic names for PowerPC registers. This defines a mapping from
55 // register name to register number.
57 #define GET_REGINFO_ENUM
58 #include "PPCGenRegisterInfo.inc"
60 // Defines symbolic names for the PowerPC instructions.
62 #define GET_INSTRINFO_ENUM
63 #include "PPCGenInstrInfo.inc"
65 #define GET_SUBTARGETINFO_ENUM
66 #include "PPCGenSubtargetInfo.inc"