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; |
Nate Begeman | 7a4fe9b | 2004-08-11 07:40:04 +0000 | [diff] [blame] | 23 | class TargetMachine; |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 24 | |
Misha Brukman | 999d9cf | 2004-07-27 18:33:06 +0000 | [diff] [blame] | 25 | FunctionPass *createPPCBranchSelectionPass(); |
Nate Begeman | 7a4fe9b | 2004-08-11 07:40:04 +0000 | [diff] [blame] | 26 | FunctionPass *createPPC32ISelSimple(TargetMachine &TM); |
Nate Begeman | a9795f8 | 2005-03-24 04:41:43 +0000 | [diff] [blame] | 27 | FunctionPass *createPPC32ISelPattern(TargetMachine &TM); |
Nate Begeman | d3e6b94 | 2005-04-05 08:51:15 +0000 | [diff] [blame] | 28 | FunctionPass *createPPC64ISelPattern(TargetMachine &TM); |
Nate Begeman | ed42853 | 2004-09-04 05:00:00 +0000 | [diff] [blame] | 29 | FunctionPass *createDarwinAsmPrinter(std::ostream &OS, TargetMachine &TM); |
| 30 | FunctionPass *createAIXAsmPrinter(std::ostream &OS, TargetMachine &TM); |
Misha Brukman | 0145881 | 2004-08-11 00:11:25 +0000 | [diff] [blame] | 31 | |
Nate Begeman | f8b0294 | 2005-04-15 22:12:16 +0000 | [diff] [blame] | 32 | extern bool PPCCRopts; |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 33 | } // end namespace llvm; |
| 34 | |
Misha Brukman | fc25659 | 2004-11-14 20:34:01 +0000 | [diff] [blame] | 35 | // GCC #defines PPC on Linux but we use it as our namespace name |
| 36 | #undef PPC |
| 37 | |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 38 | // Defines symbolic names for PowerPC registers. This defines a mapping from |
| 39 | // register name to register number. |
| 40 | // |
| 41 | #include "PowerPCGenRegisterNames.inc" |
| 42 | |
| 43 | // Defines symbolic names for the PowerPC instructions. |
| 44 | // |
| 45 | #include "PowerPCGenInstrNames.inc" |
| 46 | |
| 47 | #endif |