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 LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCMCTARGETDESC_H
15 #define LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_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;
36 extern Target ThePPC64LETarget;
38 MCCodeEmitter *createPPCMCCodeEmitter(const MCInstrInfo &MCII,
39 const MCRegisterInfo &MRI,
40 const MCSubtargetInfo &STI,
43 MCAsmBackend *createPPCAsmBackend(const Target &T, const MCRegisterInfo &MRI,
44 StringRef TT, StringRef CPU);
46 /// createPPCELFObjectWriter - Construct an PPC ELF object writer.
47 MCObjectWriter *createPPCELFObjectWriter(raw_ostream &OS,
51 /// createPPCELFObjectWriter - Construct a PPC Mach-O object writer.
52 MCObjectWriter *createPPCMachObjectWriter(raw_ostream &OS, bool Is64Bit,
55 } // End llvm namespace
57 // Generated files will use "namespace PPC". To avoid symbol clash,
58 // undefine PPC here. PPC may be predefined on some hosts.
61 // Defines symbolic names for PowerPC registers. This defines a mapping from
62 // register name to register number.
64 #define GET_REGINFO_ENUM
65 #include "PPCGenRegisterInfo.inc"
67 // Defines symbolic names for the PowerPC instructions.
69 #define GET_INSTRINFO_ENUM
70 #include "PPCGenInstrInfo.inc"
72 #define GET_SUBTARGETINFO_ENUM
73 #include "PPCGenSubtargetInfo.inc"