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"
26 class MCSubtargetInfo;
31 extern Target ThePPC32Target;
32 extern Target ThePPC64Target;
34 MCCodeEmitter *createPPCMCCodeEmitter(const MCInstrInfo &MCII,
35 const MCRegisterInfo &MRI,
36 const MCSubtargetInfo &STI,
39 MCAsmBackend *createPPCAsmBackend(const Target &T, StringRef TT);
41 /// createPPCELFObjectWriter - Construct an PPC ELF object writer.
42 MCObjectWriter *createPPCELFObjectWriter(raw_ostream &OS,
45 } // End llvm namespace
47 // Defines symbolic names for PowerPC registers. This defines a mapping from
48 // register name to register number.
50 #define GET_REGINFO_ENUM
51 #include "PPCGenRegisterInfo.inc"
53 // Defines symbolic names for the PowerPC instructions.
55 #define GET_INSTRINFO_ENUM
56 #include "PPCGenInstrInfo.inc"
58 #define GET_SUBTARGETINFO_ENUM
59 #include "PPCGenSubtargetInfo.inc"