blob: e63892ddb3d47573e7b9552cba1e1e800502d165 [file] [log] [blame]
Misha Brukman5dfe3a92004-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
18#include <iosfwd>
19
20namespace llvm {
21
22class FunctionPass;
23class TargetMachine;
24
25// Here is where you would define factory methods for powerpc-specific
26// passes. For example:
Misha Brukman999d9cf2004-07-27 18:33:06 +000027FunctionPass *createPPCSimpleInstructionSelector(TargetMachine &TM);
Misha Brukman5dfe3a92004-06-21 16:55:25 +000028FunctionPass *createPPCCodePrinterPass(std::ostream &OS, TargetMachine &TM);
Chris Lattner3ea93462004-08-06 06:58:50 +000029FunctionPass *createPowerPCPEI();
Misha Brukman999d9cf2004-07-27 18:33:06 +000030FunctionPass *createPPCBranchSelectionPass();
Misha Brukman5dfe3a92004-06-21 16:55:25 +000031} // end namespace llvm;
32
33// Defines symbolic names for PowerPC registers. This defines a mapping from
34// register name to register number.
35//
36#include "PowerPCGenRegisterNames.inc"
37
38// Defines symbolic names for the PowerPC instructions.
39//
40#include "PowerPCGenInstrNames.inc"
41
42#endif