| Misha Brukman | 2a8350a | 2005-02-05 02:24:26 +0000 | [diff] [blame] | 1 | //===-- Alpha.h - Top-level interface for Alpha representation --*- C++ -*-===// | 
| Misha Brukman | 4633f1c | 2005-04-21 23:13:11 +0000 | [diff] [blame] | 2 | // | 
| Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 3 | //                     The LLVM Compiler Infrastructure | 
 | 4 | // | 
| Chris Lattner | 4ee451d | 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. | 
| Misha Brukman | 4633f1c | 2005-04-21 23:13:11 +0000 | [diff] [blame] | 7 | // | 
| Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 8 | //===----------------------------------------------------------------------===// | 
 | 9 | // | 
 | 10 | // This file contains the entry points for global functions defined in the LLVM | 
 | 11 | // Alpha back-end. | 
 | 12 | // | 
 | 13 | //===----------------------------------------------------------------------===// | 
 | 14 |  | 
 | 15 | #ifndef TARGET_ALPHA_H | 
 | 16 | #define TARGET_ALPHA_H | 
 | 17 |  | 
| Bill Wendling | 98a366d | 2009-04-29 23:29:43 +0000 | [diff] [blame] | 18 | #include "llvm/Target/TargetMachine.h" | 
 | 19 |  | 
| Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 20 | namespace llvm { | 
| Anton Korobeynikov | 3346491 | 2010-11-15 00:06:54 +0000 | [diff] [blame] | 21 |   namespace Alpha { | 
 | 22 |     // These describe LDAx | 
 | 23 |  | 
 | 24 |     static const int IMM_LOW  = -32768; | 
 | 25 |     static const int IMM_HIGH = 32767; | 
 | 26 |     static const int IMM_MULT = 65536; | 
 | 27 |   } | 
| Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 28 |  | 
| Evan Cheng | 55fc280 | 2006-07-25 20:40:54 +0000 | [diff] [blame] | 29 |   class AlphaTargetMachine; | 
| Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 30 |   class FunctionPass; | 
| David Greene | 7184781 | 2009-07-14 20:18:05 +0000 | [diff] [blame] | 31 |   class formatted_raw_ostream; | 
| Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 32 |  | 
| Dan Gohman | c9f5f3f | 2008-05-14 01:58:56 +0000 | [diff] [blame] | 33 |   FunctionPass *createAlphaISelDag(AlphaTargetMachine &TM); | 
| Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 34 |   FunctionPass *createAlphaPatternInstructionSelector(TargetMachine &TM); | 
| Bruno Cardoso Lopes | a3f99f9 | 2009-05-30 20:51:52 +0000 | [diff] [blame] | 35 |   FunctionPass *createAlphaJITCodeEmitterPass(AlphaTargetMachine &TM, | 
| Bruno Cardoso Lopes | ac57e6e | 2009-07-06 05:09:34 +0000 | [diff] [blame] | 36 |                                               JITCodeEmitter &JCE); | 
| Andrew Lenharth | 2ab804c | 2006-09-18 19:44:29 +0000 | [diff] [blame] | 37 |   FunctionPass *createAlphaLLRPPass(AlphaTargetMachine &tm); | 
| Andrew Lenharth | f81173f | 2006-10-31 16:49:55 +0000 | [diff] [blame] | 38 |   FunctionPass *createAlphaBranchSelectionPass(); | 
| Andrew Lenharth | 2ab804c | 2006-09-18 19:44:29 +0000 | [diff] [blame] | 39 |  | 
| Daniel Dunbar | 4cb1e13 | 2009-07-18 23:03:22 +0000 | [diff] [blame] | 40 |   extern Target TheAlphaTarget; | 
 | 41 |  | 
| Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 42 | } // end namespace llvm; | 
 | 43 |  | 
 | 44 | // Defines symbolic names for Alpha registers.  This defines a mapping from | 
 | 45 | // register name to register number. | 
 | 46 | // | 
| Evan Cheng | 73f50d9 | 2011-06-27 18:32:37 +0000 | [diff] [blame] | 47 |  | 
 | 48 | #define GET_REGINFO_ENUM | 
 | 49 | #include "AlphaGenRegisterInfo.inc" | 
| Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 50 |  | 
 | 51 | // Defines symbolic names for the Alpha instructions. | 
 | 52 | // | 
| Evan Cheng | 22fee2d | 2011-06-28 20:07:07 +0000 | [diff] [blame] | 53 | #define GET_INSTRINFO_ENUM | 
 | 54 | #include "AlphaGenInstrInfo.inc" | 
| Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 55 |  | 
 | 56 | #endif |