blob: fb64a933a834b8218b89d48530d845387adeae19 [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;
Evan Chengc4c62572006-03-13 23:20:37 +000023class PPCTargetMachine;
Misha Brukman999d9cf2004-07-27 18:33:06 +000024FunctionPass *createPPCBranchSelectionPass();
Evan Chengc4c62572006-03-13 23:20:37 +000025FunctionPass *createPPCISelDag(PPCTargetMachine &TM);
26FunctionPass *createDarwinAsmPrinter(std::ostream &OS, PPCTargetMachine &TM);
27FunctionPass *createAIXAsmPrinter(std::ostream &OS, PPCTargetMachine &TM);
Misha Brukman5dfe3a92004-06-21 16:55:25 +000028} // end namespace llvm;
29
Misha Brukmanfc256592004-11-14 20:34:01 +000030// GCC #defines PPC on Linux but we use it as our namespace name
31#undef PPC
32
Misha Brukman5dfe3a92004-06-21 16:55:25 +000033// Defines symbolic names for PowerPC registers. This defines a mapping from
34// register name to register number.
35//
Chris Lattner4c7b43b2005-10-14 23:37:35 +000036#include "PPCGenRegisterNames.inc"
Misha Brukman5dfe3a92004-06-21 16:55:25 +000037
38// Defines symbolic names for the PowerPC instructions.
39//
Chris Lattner4c7b43b2005-10-14 23:37:35 +000040#include "PPCGenInstrNames.inc"
Misha Brukman5dfe3a92004-06-21 16:55:25 +000041
42#endif