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 | |
Evan Cheng | c60f9b7 | 2011-07-14 20:59:42 +0000 | [diff] [blame] | 18 | #include "MCTargetDesc/AlphaMCTargetDesc.h" |
Bill Wendling | 98a366d | 2009-04-29 23:29:43 +0000 | [diff] [blame] | 19 | #include "llvm/Target/TargetMachine.h" |
| 20 | |
Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 21 | namespace llvm { |
Anton Korobeynikov | 3346491 | 2010-11-15 00:06:54 +0000 | [diff] [blame] | 22 | namespace Alpha { |
| 23 | // These describe LDAx |
| 24 | |
| 25 | static const int IMM_LOW = -32768; |
| 26 | static const int IMM_HIGH = 32767; |
| 27 | static const int IMM_MULT = 65536; |
| 28 | } |
Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 29 | |
Evan Cheng | 55fc280 | 2006-07-25 20:40:54 +0000 | [diff] [blame] | 30 | class AlphaTargetMachine; |
Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 31 | class FunctionPass; |
David Greene | 7184781 | 2009-07-14 20:18:05 +0000 | [diff] [blame] | 32 | class formatted_raw_ostream; |
Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 33 | |
Dan Gohman | c9f5f3f | 2008-05-14 01:58:56 +0000 | [diff] [blame] | 34 | FunctionPass *createAlphaISelDag(AlphaTargetMachine &TM); |
Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 35 | FunctionPass *createAlphaPatternInstructionSelector(TargetMachine &TM); |
Bruno Cardoso Lopes | a3f99f9 | 2009-05-30 20:51:52 +0000 | [diff] [blame] | 36 | FunctionPass *createAlphaJITCodeEmitterPass(AlphaTargetMachine &TM, |
Bruno Cardoso Lopes | ac57e6e | 2009-07-06 05:09:34 +0000 | [diff] [blame] | 37 | JITCodeEmitter &JCE); |
Andrew Lenharth | 2ab804c | 2006-09-18 19:44:29 +0000 | [diff] [blame] | 38 | FunctionPass *createAlphaLLRPPass(AlphaTargetMachine &tm); |
Andrew Lenharth | f81173f | 2006-10-31 16:49:55 +0000 | [diff] [blame] | 39 | FunctionPass *createAlphaBranchSelectionPass(); |
Andrew Lenharth | 2ab804c | 2006-09-18 19:44:29 +0000 | [diff] [blame] | 40 | |
Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 41 | } // end namespace llvm; |
| 42 | |
Andrew Lenharth | 304d0f3 | 2005-01-22 23:41:55 +0000 | [diff] [blame] | 43 | #endif |