2006-09-04 06:14:57 +02:00
|
|
|
//===-- PPC.h - Top-level interface for PowerPC Target ----------*- C++ -*-===//
|
2005-04-22 01:30:14 +02:00
|
|
|
//
|
2004-06-21 18:55:25 +02:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
2005-04-22 01:30:14 +02:00
|
|
|
//
|
2004-06-21 18:55:25 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the entry points for global functions defined in the LLVM
|
|
|
|
// PowerPC back-end.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2006-09-04 06:14:57 +02:00
|
|
|
#ifndef LLVM_TARGET_POWERPC_H
|
|
|
|
#define LLVM_TARGET_POWERPC_H
|
2004-06-21 18:55:25 +02:00
|
|
|
|
2004-08-11 09:40:04 +02:00
|
|
|
#include <iosfwd>
|
|
|
|
|
2004-06-21 18:55:25 +02:00
|
|
|
namespace llvm {
|
|
|
|
|
2006-03-14 00:20:37 +01:00
|
|
|
class PPCTargetMachine;
|
2006-09-04 06:14:57 +02:00
|
|
|
class FunctionPassManager;
|
2006-08-23 23:08:52 +02:00
|
|
|
class FunctionPass;
|
|
|
|
class MachineCodeEmitter;
|
|
|
|
|
2004-07-27 20:33:06 +02:00
|
|
|
FunctionPass *createPPCBranchSelectionPass();
|
2006-03-14 00:20:37 +01:00
|
|
|
FunctionPass *createPPCISelDag(PPCTargetMachine &TM);
|
2006-09-20 19:12:19 +02:00
|
|
|
FunctionPass *createPPCAsmPrinterPass(std::ostream &OS,
|
|
|
|
PPCTargetMachine &TM);
|
2006-08-23 23:08:52 +02:00
|
|
|
FunctionPass *createPPCCodeEmitterPass(PPCTargetMachine &TM,
|
|
|
|
MachineCodeEmitter &MCE);
|
2006-09-04 06:14:57 +02:00
|
|
|
void addPPCMachOObjectWriterPass(FunctionPassManager &FPM, std::ostream &o,
|
2006-08-23 23:08:52 +02:00
|
|
|
PPCTargetMachine &tm);
|
2004-06-21 18:55:25 +02:00
|
|
|
} // end namespace llvm;
|
|
|
|
|
2004-11-14 21:34:01 +01:00
|
|
|
// GCC #defines PPC on Linux but we use it as our namespace name
|
|
|
|
#undef PPC
|
|
|
|
|
2004-06-21 18:55:25 +02:00
|
|
|
// Defines symbolic names for PowerPC registers. This defines a mapping from
|
|
|
|
// register name to register number.
|
|
|
|
//
|
2005-10-15 01:37:35 +02:00
|
|
|
#include "PPCGenRegisterNames.inc"
|
2004-06-21 18:55:25 +02:00
|
|
|
|
|
|
|
// Defines symbolic names for the PowerPC instructions.
|
|
|
|
//
|
2005-10-15 01:37:35 +02:00
|
|
|
#include "PPCGenInstrNames.inc"
|
2004-06-21 18:55:25 +02:00
|
|
|
|
|
|
|
#endif
|