blob: 435c95cd030690e81a5d1e3e9d7b8320a5142b75 [file] [log] [blame]
Misha Brukman2a8350a2005-02-05 02:24:26 +00001//===-- Alpha.h - Top-level interface for Alpha representation --*- C++ -*-===//
Misha Brukman4633f1c2005-04-21 23:13:11 +00002//
Andrew Lenharth304d0f32005-01-22 23:41:55 +00003// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Misha Brukman4633f1c2005-04-21 23:13:11 +00007//
Andrew Lenharth304d0f32005-01-22 23:41:55 +00008//===----------------------------------------------------------------------===//
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 Wendling98a366d2009-04-29 23:29:43 +000018#include "llvm/Target/TargetMachine.h"
19
Andrew Lenharth304d0f32005-01-22 23:41:55 +000020namespace llvm {
Anton Korobeynikov33464912010-11-15 00:06:54 +000021 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 Lenharth304d0f32005-01-22 23:41:55 +000028
Evan Cheng55fc2802006-07-25 20:40:54 +000029 class AlphaTargetMachine;
Andrew Lenharth304d0f32005-01-22 23:41:55 +000030 class FunctionPass;
David Greene71847812009-07-14 20:18:05 +000031 class formatted_raw_ostream;
Andrew Lenharth304d0f32005-01-22 23:41:55 +000032
Dan Gohmanc9f5f3f2008-05-14 01:58:56 +000033 FunctionPass *createAlphaISelDag(AlphaTargetMachine &TM);
Andrew Lenharth304d0f32005-01-22 23:41:55 +000034 FunctionPass *createAlphaPatternInstructionSelector(TargetMachine &TM);
Bruno Cardoso Lopesa3f99f92009-05-30 20:51:52 +000035 FunctionPass *createAlphaJITCodeEmitterPass(AlphaTargetMachine &TM,
Bruno Cardoso Lopesac57e6e2009-07-06 05:09:34 +000036 JITCodeEmitter &JCE);
Andrew Lenharth2ab804c2006-09-18 19:44:29 +000037 FunctionPass *createAlphaLLRPPass(AlphaTargetMachine &tm);
Andrew Lenharthf81173f2006-10-31 16:49:55 +000038 FunctionPass *createAlphaBranchSelectionPass();
Andrew Lenharth2ab804c2006-09-18 19:44:29 +000039
Daniel Dunbar4cb1e132009-07-18 23:03:22 +000040 extern Target TheAlphaTarget;
41
Andrew Lenharth304d0f32005-01-22 23:41:55 +000042} // end namespace llvm;
43
44// Defines symbolic names for Alpha registers. This defines a mapping from
45// register name to register number.
46//
Evan Cheng73f50d92011-06-27 18:32:37 +000047
48#define GET_REGINFO_ENUM
49#include "AlphaGenRegisterInfo.inc"
Andrew Lenharth304d0f32005-01-22 23:41:55 +000050
51// Defines symbolic names for the Alpha instructions.
52//
Evan Cheng22fee2d2011-06-28 20:07:07 +000053#define GET_INSTRINFO_ENUM
54#include "AlphaGenInstrInfo.inc"
Andrew Lenharth304d0f32005-01-22 23:41:55 +000055
56#endif