Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | //===-- PPC.h - Top-level interface for PowerPC Target ----------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
Chris Lattner | 081ce94 | 2007-12-29 20:36:04 +0000 | [diff] [blame] | 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 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 LLVM_TARGET_POWERPC_H |
| 16 | #define LLVM_TARGET_POWERPC_H |
| 17 | |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 18 | // GCC #defines PPC on Linux but we use it as our namespace name |
| 19 | #undef PPC |
| 20 | |
Bill Wendling | 5ed22ac | 2009-04-29 23:29:43 +0000 | [diff] [blame] | 21 | #include "llvm/Target/TargetMachine.h" |
| 22 | |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 23 | namespace llvm { |
| 24 | class PPCTargetMachine; |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 25 | class FunctionPass; |
| 26 | class MachineCodeEmitter; |
Bruno Cardoso Lopes | aabb9a5 | 2009-07-06 05:09:34 +0000 | [diff] [blame] | 27 | class ObjectCodeEmitter; |
David Greene | 302008d | 2009-07-14 20:18:05 +0000 | [diff] [blame] | 28 | class formatted_raw_ostream; |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 29 | |
| 30 | FunctionPass *createPPCBranchSelectionPass(); |
| 31 | FunctionPass *createPPCISelDag(PPCTargetMachine &TM); |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 32 | FunctionPass *createPPCCodeEmitterPass(PPCTargetMachine &TM, |
| 33 | MachineCodeEmitter &MCE); |
Bruno Cardoso Lopes | 1ea31ff | 2009-05-30 20:51:52 +0000 | [diff] [blame] | 34 | FunctionPass *createPPCJITCodeEmitterPass(PPCTargetMachine &TM, |
Bruno Cardoso Lopes | aabb9a5 | 2009-07-06 05:09:34 +0000 | [diff] [blame] | 35 | JITCodeEmitter &MCE); |
| 36 | FunctionPass *createPPCObjectCodeEmitterPass(PPCTargetMachine &TM, |
| 37 | ObjectCodeEmitter &OCE); |
Daniel Dunbar | 0b0441e | 2009-07-18 23:03:22 +0000 | [diff] [blame] | 38 | |
| 39 | extern Target ThePPC32Target; |
| 40 | extern Target ThePPC64Target; |
| 41 | |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 42 | } // end namespace llvm; |
| 43 | |
| 44 | // Defines symbolic names for PowerPC registers. This defines a mapping from |
| 45 | // register name to register number. |
| 46 | // |
| 47 | #include "PPCGenRegisterNames.inc" |
| 48 | |
| 49 | // Defines symbolic names for the PowerPC instructions. |
| 50 | // |
| 51 | #include "PPCGenInstrNames.inc" |
| 52 | |
| 53 | #endif |