blob: b364e3f809d847a94e5701902608a3949bb7975e [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
Bill Wendling5ed22ac2009-04-29 23:29:43 +000021#include "llvm/Target/TargetMachine.h"
22
Dan Gohmanf17a25c2007-07-18 16:29:46 +000023namespace llvm {
24 class PPCTargetMachine;
Dan Gohmanf17a25c2007-07-18 16:29:46 +000025 class FunctionPass;
26 class MachineCodeEmitter;
Bruno Cardoso Lopesaabb9a52009-07-06 05:09:34 +000027 class ObjectCodeEmitter;
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);
Daniel Dunbarb10d2222009-07-01 01:48:54 +000032FunctionPass *createPPCAsmPrinterPass(raw_ostream &OS, PPCTargetMachine &TM,
33 bool Verbose);
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034FunctionPass *createPPCCodeEmitterPass(PPCTargetMachine &TM,
35 MachineCodeEmitter &MCE);
Bruno Cardoso Lopes1ea31ff2009-05-30 20:51:52 +000036FunctionPass *createPPCJITCodeEmitterPass(PPCTargetMachine &TM,
Bruno Cardoso Lopesaabb9a52009-07-06 05:09:34 +000037 JITCodeEmitter &MCE);
38FunctionPass *createPPCObjectCodeEmitterPass(PPCTargetMachine &TM,
39 ObjectCodeEmitter &OCE);
Dan Gohmanf17a25c2007-07-18 16:29:46 +000040} // end namespace llvm;
41
42// Defines symbolic names for PowerPC registers. This defines a mapping from
43// register name to register number.
44//
45#include "PPCGenRegisterNames.inc"
46
47// Defines symbolic names for the PowerPC instructions.
48//
49#include "PPCGenInstrNames.inc"
50
51#endif