Chris Lattner | 1911fd4 | 2006-09-04 04:14:57 +0000 | [diff] [blame^] | 1 | //===-- PPC.h - Top-level interface for PowerPC Target ----------*- C++ -*-===// |
Misha Brukman | b5f662f | 2005-04-21 23:30:14 +0000 | [diff] [blame] | 2 | // |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 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. |
Misha Brukman | b5f662f | 2005-04-21 23:30:14 +0000 | [diff] [blame] | 7 | // |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file contains the entry points for global functions defined in the LLVM |
| 11 | // PowerPC back-end. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
Chris Lattner | 1911fd4 | 2006-09-04 04:14:57 +0000 | [diff] [blame^] | 15 | #ifndef LLVM_TARGET_POWERPC_H |
| 16 | #define LLVM_TARGET_POWERPC_H |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 17 | |
Nate Begeman | 7a4fe9b | 2004-08-11 07:40:04 +0000 | [diff] [blame] | 18 | #include <iosfwd> |
| 19 | |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 20 | namespace llvm { |
| 21 | |
Evan Cheng | c4c6257 | 2006-03-13 23:20:37 +0000 | [diff] [blame] | 22 | class PPCTargetMachine; |
Chris Lattner | 1911fd4 | 2006-09-04 04:14:57 +0000 | [diff] [blame^] | 23 | class FunctionPassManager; |
Nate Begeman | eb883af | 2006-08-23 21:08:52 +0000 | [diff] [blame] | 24 | class FunctionPass; |
| 25 | class MachineCodeEmitter; |
| 26 | |
Misha Brukman | 999d9cf | 2004-07-27 18:33:06 +0000 | [diff] [blame] | 27 | FunctionPass *createPPCBranchSelectionPass(); |
Evan Cheng | c4c6257 | 2006-03-13 23:20:37 +0000 | [diff] [blame] | 28 | FunctionPass *createPPCISelDag(PPCTargetMachine &TM); |
| 29 | FunctionPass *createDarwinAsmPrinter(std::ostream &OS, PPCTargetMachine &TM); |
Nate Begeman | eb883af | 2006-08-23 21:08:52 +0000 | [diff] [blame] | 30 | FunctionPass *createPPCCodeEmitterPass(PPCTargetMachine &TM, |
| 31 | MachineCodeEmitter &MCE); |
Chris Lattner | 1911fd4 | 2006-09-04 04:14:57 +0000 | [diff] [blame^] | 32 | void addPPCMachOObjectWriterPass(FunctionPassManager &FPM, std::ostream &o, |
Nate Begeman | eb883af | 2006-08-23 21:08:52 +0000 | [diff] [blame] | 33 | PPCTargetMachine &tm); |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 34 | } // end namespace llvm; |
| 35 | |
Misha Brukman | fc25659 | 2004-11-14 20:34:01 +0000 | [diff] [blame] | 36 | // GCC #defines PPC on Linux but we use it as our namespace name |
| 37 | #undef PPC |
| 38 | |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 39 | // Defines symbolic names for PowerPC registers. This defines a mapping from |
| 40 | // register name to register number. |
| 41 | // |
Chris Lattner | 4c7b43b | 2005-10-14 23:37:35 +0000 | [diff] [blame] | 42 | #include "PPCGenRegisterNames.inc" |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 43 | |
| 44 | // Defines symbolic names for the PowerPC instructions. |
| 45 | // |
Chris Lattner | 4c7b43b | 2005-10-14 23:37:35 +0000 | [diff] [blame] | 46 | #include "PPCGenInstrNames.inc" |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 47 | |
| 48 | #endif |