blob: 6ffaf45f4ed194ee90e1f6975cf326e8fa238c26 [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
Evan Chengc60f9b72011-07-14 20:59:42 +000018#include "MCTargetDesc/AlphaMCTargetDesc.h"
Bill Wendling98a366d2009-04-29 23:29:43 +000019#include "llvm/Target/TargetMachine.h"
20
Andrew Lenharth304d0f32005-01-22 23:41:55 +000021namespace llvm {
Anton Korobeynikov33464912010-11-15 00:06:54 +000022 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 Lenharth304d0f32005-01-22 23:41:55 +000029
Evan Cheng55fc2802006-07-25 20:40:54 +000030 class AlphaTargetMachine;
Andrew Lenharth304d0f32005-01-22 23:41:55 +000031 class FunctionPass;
David Greene71847812009-07-14 20:18:05 +000032 class formatted_raw_ostream;
Andrew Lenharth304d0f32005-01-22 23:41:55 +000033
Dan Gohmanc9f5f3f2008-05-14 01:58:56 +000034 FunctionPass *createAlphaISelDag(AlphaTargetMachine &TM);
Andrew Lenharth304d0f32005-01-22 23:41:55 +000035 FunctionPass *createAlphaPatternInstructionSelector(TargetMachine &TM);
Bruno Cardoso Lopesa3f99f92009-05-30 20:51:52 +000036 FunctionPass *createAlphaJITCodeEmitterPass(AlphaTargetMachine &TM,
Bruno Cardoso Lopesac57e6e2009-07-06 05:09:34 +000037 JITCodeEmitter &JCE);
Andrew Lenharth2ab804c2006-09-18 19:44:29 +000038 FunctionPass *createAlphaLLRPPass(AlphaTargetMachine &tm);
Andrew Lenharthf81173f2006-10-31 16:49:55 +000039 FunctionPass *createAlphaBranchSelectionPass();
Andrew Lenharth2ab804c2006-09-18 19:44:29 +000040
Andrew Lenharth304d0f32005-01-22 23:41:55 +000041} // end namespace llvm;
42
Andrew Lenharth304d0f32005-01-22 23:41:55 +000043#endif