blob: 2761910670ddf2a997eb0e2bd104bc7673f9b1de [file] [log] [blame]
Misha Brukman5dfe3a92004-06-21 16:55:25 +00001//===-- PowerPC.h - Top-level interface for PowerPC representation -*- 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
15#ifndef TARGET_POWERPC_H
16#define TARGET_POWERPC_H
17
Nate Begeman7a4fe9b2004-08-11 07:40:04 +000018#include <iosfwd>
19
Misha Brukman5dfe3a92004-06-21 16:55:25 +000020namespace llvm {
21
22class FunctionPass;
Nate Begeman7a4fe9b2004-08-11 07:40:04 +000023class TargetMachine;
Misha Brukman5dfe3a92004-06-21 16:55:25 +000024
Misha Brukman999d9cf2004-07-27 18:33:06 +000025FunctionPass *createPPCBranchSelectionPass();
Nate Begeman7a4fe9b2004-08-11 07:40:04 +000026FunctionPass *createPPC32ISelSimple(TargetMachine &TM);
Nate Begemana9795f82005-03-24 04:41:43 +000027FunctionPass *createPPC32ISelPattern(TargetMachine &TM);
Nate Begemand3e6b942005-04-05 08:51:15 +000028FunctionPass *createPPC64ISelPattern(TargetMachine &TM);
Nate Begemaned428532004-09-04 05:00:00 +000029FunctionPass *createDarwinAsmPrinter(std::ostream &OS, TargetMachine &TM);
30FunctionPass *createAIXAsmPrinter(std::ostream &OS, TargetMachine &TM);
Nate Begeman2497e632005-07-21 20:44:43 +000031
32extern bool GPOPT;
33extern bool PICEnabled;
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//
42#include "PowerPCGenRegisterNames.inc"
43
44// Defines symbolic names for the PowerPC instructions.
45//
46#include "PowerPCGenInstrNames.inc"
47
48#endif