blob: 7ca87d9ba52bc42b3103e20e206fd0df45599f94 [file] [log] [blame]
Misha Brukmane05203f2004-06-21 16:55:25 +00001//===-- PowerPC.h - Top-level interface for PowerPC representation -*- C++ -*-//
2//
3// 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.
7//
8//===----------------------------------------------------------------------===//
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 Begemanf17ea0f2004-08-11 07:40:04 +000018#include <iosfwd>
19
Misha Brukmane05203f2004-06-21 16:55:25 +000020namespace llvm {
21
22class FunctionPass;
Nate Begemanf17ea0f2004-08-11 07:40:04 +000023class TargetMachine;
Misha Brukmane05203f2004-06-21 16:55:25 +000024
Misha Brukmanef8cf022004-07-27 18:33:06 +000025FunctionPass *createPPCBranchSelectionPass();
Nate Begemanf17ea0f2004-08-11 07:40:04 +000026FunctionPass *createPPC32ISelSimple(TargetMachine &TM);
Misha Brukmanc2a04342004-08-11 23:42:15 +000027FunctionPass *createPPC64ISelSimple(TargetMachine &TM);
Nate Begeman4bfceb12004-09-04 05:00:00 +000028FunctionPass *createDarwinAsmPrinter(std::ostream &OS, TargetMachine &TM);
29FunctionPass *createAIXAsmPrinter(std::ostream &OS, TargetMachine &TM);
Misha Brukmane67a2122004-08-11 00:11:25 +000030
Misha Brukmane05203f2004-06-21 16:55:25 +000031} // end namespace llvm;
32
Misha Brukman8b8ba9f2004-11-14 20:34:01 +000033// GCC #defines PPC on Linux but we use it as our namespace name
34#undef PPC
35
Misha Brukmane05203f2004-06-21 16:55:25 +000036// Defines symbolic names for PowerPC registers. This defines a mapping from
37// register name to register number.
38//
39#include "PowerPCGenRegisterNames.inc"
40
41// Defines symbolic names for the PowerPC instructions.
42//
43#include "PowerPCGenInstrNames.inc"
44
45#endif