blob: bfaa8749a311b31beccb538e8f7c881adb1dffa6 [file] [log] [blame]
Chris Lattner12e97302006-09-04 04:14:57 +00001//===-- PPC.h - Top-level interface for PowerPC Target ----------*- C++ -*-===//
Misha Brukmanb4402432005-04-21 23:30:14 +00002//
Misha Brukmane05203f2004-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 Brukmanb4402432005-04-21 23:30:14 +00007//
Misha Brukmane05203f2004-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 Lattner12e97302006-09-04 04:14:57 +000015#ifndef LLVM_TARGET_POWERPC_H
16#define LLVM_TARGET_POWERPC_H
Misha Brukmane05203f2004-06-21 16:55:25 +000017
Nate Begemanf17ea0f2004-08-11 07:40:04 +000018#include <iosfwd>
19
Chris Lattner6be72602006-11-04 05:27:39 +000020
21// GCC #defines PPC on Linux but we use it as our namespace name
22#undef PPC
23
Misha Brukmane05203f2004-06-21 16:55:25 +000024namespace llvm {
Chris Lattner6be72602006-11-04 05:27:39 +000025 class PPCTargetMachine;
26 class FunctionPassManager;
27 class FunctionPass;
28 class MachineCodeEmitter;
29
Misha Brukmanef8cf022004-07-27 18:33:06 +000030FunctionPass *createPPCBranchSelectionPass();
Evan Cheng2dd2c652006-03-13 23:20:37 +000031FunctionPass *createPPCISelDag(PPCTargetMachine &TM);
Chris Lattnera81a75c2006-09-20 17:12:19 +000032FunctionPass *createPPCAsmPrinterPass(std::ostream &OS,
33 PPCTargetMachine &TM);
Nate Begeman3cb39212006-08-23 21:08:52 +000034FunctionPass *createPPCCodeEmitterPass(PPCTargetMachine &TM,
35 MachineCodeEmitter &MCE);
Chris Lattner12e97302006-09-04 04:14:57 +000036void addPPCMachOObjectWriterPass(FunctionPassManager &FPM, std::ostream &o,
Nate Begeman3cb39212006-08-23 21:08:52 +000037 PPCTargetMachine &tm);
Misha Brukmane05203f2004-06-21 16:55:25 +000038} // end namespace llvm;
39
Misha Brukmane05203f2004-06-21 16:55:25 +000040// Defines symbolic names for PowerPC registers. This defines a mapping from
41// register name to register number.
42//
Chris Lattner0921e3b2005-10-14 23:37:35 +000043#include "PPCGenRegisterNames.inc"
Misha Brukmane05203f2004-06-21 16:55:25 +000044
45// Defines symbolic names for the PowerPC instructions.
46//
Chris Lattner0921e3b2005-10-14 23:37:35 +000047#include "PPCGenInstrNames.inc"
Misha Brukmane05203f2004-06-21 16:55:25 +000048
49#endif