blob: 9a8e22e88debf3960a1463fd9deed2cf8cafbbcf [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001//===-- PPC.h - Top-level interface for PowerPC Target ----------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner081ce942007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007//
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 LLVM_TARGET_POWERPC_H
16#define LLVM_TARGET_POWERPC_H
17
18#include <iosfwd>
19
20
21// GCC #defines PPC on Linux but we use it as our namespace name
22#undef PPC
23
24namespace llvm {
25 class PPCTargetMachine;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026 class FunctionPass;
27 class MachineCodeEmitter;
Owen Anderson847b99b2008-08-21 00:14:44 +000028 class raw_ostream;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029
30FunctionPass *createPPCBranchSelectionPass();
31FunctionPass *createPPCISelDag(PPCTargetMachine &TM);
Owen Anderson847b99b2008-08-21 00:14:44 +000032FunctionPass *createPPCAsmPrinterPass(raw_ostream &OS,
Dan Gohmanf17a25c2007-07-18 16:29:46 +000033 PPCTargetMachine &TM);
34FunctionPass *createPPCCodeEmitterPass(PPCTargetMachine &TM,
35 MachineCodeEmitter &MCE);
36} // end namespace llvm;
37
38// Defines symbolic names for PowerPC registers. This defines a mapping from
39// register name to register number.
40//
41#include "PPCGenRegisterNames.inc"
42
43// Defines symbolic names for the PowerPC instructions.
44//
45#include "PPCGenInstrNames.inc"
46
47#endif