Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 1 | //===-- PowerPC.h - Top-level interface for PowerPC representation -*- 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 | |
| 15 | #ifndef TARGET_POWERPC_H |
| 16 | #define TARGET_POWERPC_H |
| 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 | |
| 22 | class FunctionPass; |
Evan Cheng | c4c6257 | 2006-03-13 23:20:37 +0000 | [diff] [blame] | 23 | class PPCTargetMachine; |
Misha Brukman | 999d9cf | 2004-07-27 18:33:06 +0000 | [diff] [blame] | 24 | FunctionPass *createPPCBranchSelectionPass(); |
Evan Cheng | c4c6257 | 2006-03-13 23:20:37 +0000 | [diff] [blame] | 25 | FunctionPass *createPPCISelDag(PPCTargetMachine &TM); |
| 26 | FunctionPass *createDarwinAsmPrinter(std::ostream &OS, PPCTargetMachine &TM); |
| 27 | FunctionPass *createAIXAsmPrinter(std::ostream &OS, PPCTargetMachine &TM); |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 28 | } // end namespace llvm; |
| 29 | |
Misha Brukman | fc25659 | 2004-11-14 20:34:01 +0000 | [diff] [blame] | 30 | // GCC #defines PPC on Linux but we use it as our namespace name |
| 31 | #undef PPC |
| 32 | |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 33 | // Defines symbolic names for PowerPC registers. This defines a mapping from |
| 34 | // register name to register number. |
| 35 | // |
Chris Lattner | 4c7b43b | 2005-10-14 23:37:35 +0000 | [diff] [blame] | 36 | #include "PPCGenRegisterNames.inc" |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 37 | |
| 38 | // Defines symbolic names for the PowerPC instructions. |
| 39 | // |
Chris Lattner | 4c7b43b | 2005-10-14 23:37:35 +0000 | [diff] [blame] | 40 | #include "PPCGenInstrNames.inc" |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 41 | |
| 42 | #endif |