blob: 26439bd09412dd063ed5cb0f379433481143711d [file] [log] [blame]
Chris Lattner1911fd42006-09-04 04:14:57 +00001//===-- PPC.h - Top-level interface for PowerPC Target ----------*- C++ -*-===//
Misha Brukmanb5f662f2005-04-21 23:30:14 +00002//
Misha Brukman5dfe3a92004-06-21 16:55:25 +00003// The LLVM Compiler Infrastructure
4//
5// This file was developed by the LLVM research group and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
Misha Brukmanb5f662f2005-04-21 23:30:14 +00007//
Misha Brukman5dfe3a92004-06-21 16:55:25 +00008//===----------------------------------------------------------------------===//
9//
10// This file contains the entry points for global functions defined in the LLVM
11// PowerPC back-end.
12//
13//===----------------------------------------------------------------------===//
14
Chris Lattner1911fd42006-09-04 04:14:57 +000015#ifndef LLVM_TARGET_POWERPC_H
16#define LLVM_TARGET_POWERPC_H
Misha Brukman5dfe3a92004-06-21 16:55:25 +000017
Nate Begeman7a4fe9b2004-08-11 07:40:04 +000018#include <iosfwd>
19
Misha Brukman5dfe3a92004-06-21 16:55:25 +000020namespace llvm {
21
Evan Chengc4c62572006-03-13 23:20:37 +000022class PPCTargetMachine;
Chris Lattner1911fd42006-09-04 04:14:57 +000023class FunctionPassManager;
Nate Begemaneb883af2006-08-23 21:08:52 +000024class FunctionPass;
25class MachineCodeEmitter;
26
Misha Brukman999d9cf2004-07-27 18:33:06 +000027FunctionPass *createPPCBranchSelectionPass();
Evan Chengc4c62572006-03-13 23:20:37 +000028FunctionPass *createPPCISelDag(PPCTargetMachine &TM);
29FunctionPass *createDarwinAsmPrinter(std::ostream &OS, PPCTargetMachine &TM);
Nate Begemaneb883af2006-08-23 21:08:52 +000030FunctionPass *createPPCCodeEmitterPass(PPCTargetMachine &TM,
31 MachineCodeEmitter &MCE);
Chris Lattner1911fd42006-09-04 04:14:57 +000032void addPPCMachOObjectWriterPass(FunctionPassManager &FPM, std::ostream &o,
Nate Begemaneb883af2006-08-23 21:08:52 +000033 PPCTargetMachine &tm);
Misha Brukman5dfe3a92004-06-21 16:55:25 +000034} // end namespace llvm;
35
Misha Brukmanfc256592004-11-14 20:34:01 +000036// GCC #defines PPC on Linux but we use it as our namespace name
37#undef PPC
38
Misha Brukman5dfe3a92004-06-21 16:55:25 +000039// Defines symbolic names for PowerPC registers. This defines a mapping from
40// register name to register number.
41//
Chris Lattner4c7b43b2005-10-14 23:37:35 +000042#include "PPCGenRegisterNames.inc"
Misha Brukman5dfe3a92004-06-21 16:55:25 +000043
44// Defines symbolic names for the PowerPC instructions.
45//
Chris Lattner4c7b43b2005-10-14 23:37:35 +000046#include "PPCGenInstrNames.inc"
Misha Brukman5dfe3a92004-06-21 16:55:25 +000047
48#endif