blob: d58d2a6127a23059a8df1efafa3cd402820360b1 [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
Nate Begeman3d72d142005-08-04 20:49:48 +000025enum PPCTargetEnum {
26 TargetDefault, TargetAIX, TargetDarwin
27};
28
Misha Brukman999d9cf2004-07-27 18:33:06 +000029FunctionPass *createPPCBranchSelectionPass();
Nate Begemana9795f82005-03-24 04:41:43 +000030FunctionPass *createPPC32ISelPattern(TargetMachine &TM);
Chris Lattnerd1c46262005-08-17 19:32:03 +000031FunctionPass *createPPC32ISelDag(TargetMachine &TM);
Nate Begemaned428532004-09-04 05:00:00 +000032FunctionPass *createDarwinAsmPrinter(std::ostream &OS, TargetMachine &TM);
33FunctionPass *createAIXAsmPrinter(std::ostream &OS, TargetMachine &TM);
Nate Begeman2497e632005-07-21 20:44:43 +000034
Nate Begeman2497e632005-07-21 20:44:43 +000035extern bool PICEnabled;
Nate Begeman3d72d142005-08-04 20:49:48 +000036extern PPCTargetEnum PPCTarget;
Misha Brukman5dfe3a92004-06-21 16:55:25 +000037} // end namespace llvm;
38
Misha Brukmanfc256592004-11-14 20:34:01 +000039// GCC #defines PPC on Linux but we use it as our namespace name
40#undef PPC
41
Misha Brukman5dfe3a92004-06-21 16:55:25 +000042// Defines symbolic names for PowerPC registers. This defines a mapping from
43// register name to register number.
44//
Chris Lattner4c7b43b2005-10-14 23:37:35 +000045#include "PPCGenRegisterNames.inc"
Misha Brukman5dfe3a92004-06-21 16:55:25 +000046
47// Defines symbolic names for the PowerPC instructions.
48//
Chris Lattner4c7b43b2005-10-14 23:37:35 +000049#include "PPCGenInstrNames.inc"
Misha Brukman5dfe3a92004-06-21 16:55:25 +000050
51#endif