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 #include "llvm/Support/DataTypes.h"
25 class MCSubtargetInfo;
30 extern Target ThePPC32Target;
31 extern Target ThePPC64Target;
33 MCCodeEmitter *createPPCMCCodeEmitter(const MCInstrInfo &MCII,
34 const MCSubtargetInfo &STI,
37 MCAsmBackend *createPPCAsmBackend(const Target &T, StringRef TT);
39 /// createPPCELFObjectWriter - Construct an PPC ELF object writer.
40 MCObjectWriter *createPPCELFObjectWriter(raw_ostream &OS,
43 } // End llvm namespace
45 // Defines symbolic names for PowerPC registers. This defines a mapping from
46 // register name to register number.
48 #define GET_REGINFO_ENUM
49 #include "PPCGenRegisterInfo.inc"
51 // Defines symbolic names for the PowerPC instructions.
53 #define GET_INSTRINFO_ENUM
54 #include "PPCGenInstrInfo.inc"
56 #define GET_SUBTARGETINFO_ENUM
57 #include "PPCGenSubtargetInfo.inc"