blob: f5507c29bef11a8d7527dafa59f55e5074b025c6 [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
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018// GCC #defines PPC on Linux but we use it as our namespace name
19#undef PPC
20
21namespace llvm {
22 class PPCTargetMachine;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023 class FunctionPass;
24 class MachineCodeEmitter;
Owen Anderson847b99b2008-08-21 00:14:44 +000025 class raw_ostream;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000026
27FunctionPass *createPPCBranchSelectionPass();
28FunctionPass *createPPCISelDag(PPCTargetMachine &TM);
Owen Anderson847b99b2008-08-21 00:14:44 +000029FunctionPass *createPPCAsmPrinterPass(raw_ostream &OS,
Bill Wendling4f405312009-02-24 08:30:20 +000030 PPCTargetMachine &TM,
Bill Wendling11a01bf2009-04-28 00:21:31 +000031 unsigned OptLevel, bool Verbose);
Dan Gohmanf17a25c2007-07-18 16:29:46 +000032FunctionPass *createPPCCodeEmitterPass(PPCTargetMachine &TM,
33 MachineCodeEmitter &MCE);
34} // end namespace llvm;
35
36// Defines symbolic names for PowerPC registers. This defines a mapping from
37// register name to register number.
38//
39#include "PPCGenRegisterNames.inc"
40
41// Defines symbolic names for the PowerPC instructions.
42//
43#include "PPCGenInstrNames.inc"
44
45#endif