blob: 773b9c169b46b041a2586e1ab63c3872e21f6559 [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,
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030 PPCTargetMachine &TM);
31FunctionPass *createPPCCodeEmitterPass(PPCTargetMachine &TM,
32 MachineCodeEmitter &MCE);
33} // end namespace llvm;
34
35// Defines symbolic names for PowerPC registers. This defines a mapping from
36// register name to register number.
37//
38#include "PPCGenRegisterNames.inc"
39
40// Defines symbolic names for the PowerPC instructions.
41//
42#include "PPCGenInstrNames.inc"
43
44#endif