Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 1 | //===-- PowerPC.h - Top-level interface for PowerPC representation -*- C++ -*-// |
| 2 | // |
| 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. |
| 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 TARGET_POWERPC_H |
| 16 | #define TARGET_POWERPC_H |
| 17 | |
| 18 | #include <iosfwd> |
| 19 | |
| 20 | namespace llvm { |
| 21 | |
| 22 | class FunctionPass; |
| 23 | class TargetMachine; |
| 24 | |
| 25 | // Here is where you would define factory methods for powerpc-specific |
| 26 | // passes. For example: |
Misha Brukman | 999d9cf | 2004-07-27 18:33:06 +0000 | [diff] [blame^] | 27 | FunctionPass *createPPCSimpleInstructionSelector(TargetMachine &TM); |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 28 | FunctionPass *createPPCCodePrinterPass(std::ostream &OS, TargetMachine &TM); |
Misha Brukman | 999d9cf | 2004-07-27 18:33:06 +0000 | [diff] [blame^] | 29 | FunctionPass *createPPCBranchSelectionPass(); |
Misha Brukman | 5dfe3a9 | 2004-06-21 16:55:25 +0000 | [diff] [blame] | 30 | } // end namespace llvm; |
| 31 | |
| 32 | // Defines symbolic names for PowerPC registers. This defines a mapping from |
| 33 | // register name to register number. |
| 34 | // |
| 35 | #include "PowerPCGenRegisterNames.inc" |
| 36 | |
| 37 | // Defines symbolic names for the PowerPC instructions. |
| 38 | // |
| 39 | #include "PowerPCGenInstrNames.inc" |
| 40 | |
| 41 | #endif |