blob: 6ffaf45f4ed194ee90e1f6975cf326e8fa238c26 [file] [log] [blame]
Misha Brukmanffe99682005-02-05 02:24:26 +00001//===-- Alpha.h - Top-level interface for Alpha representation --*- C++ -*-===//
Misha Brukman89b8c8d2005-04-21 23:13:11 +00002//
Andrew Lenhartha1b5ca22005-01-22 23:41:55 +00003// The LLVM Compiler Infrastructure
4//
Chris Lattnerf3ebc3f2007-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 Brukman89b8c8d2005-04-21 23:13:11 +00007//
Andrew Lenhartha1b5ca22005-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 Chengbc153d42011-07-14 20:59:42 +000018#include "MCTargetDesc/AlphaMCTargetDesc.h"
Bill Wendling026e5d72009-04-29 23:29:43 +000019#include "llvm/Target/TargetMachine.h"
20
Andrew Lenhartha1b5ca22005-01-22 23:41:55 +000021namespace llvm {
Anton Korobeynikovf7183ed2010-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 Lenhartha1b5ca22005-01-22 23:41:55 +000029
Evan Chengf6acb342006-07-25 20:40:54 +000030 class AlphaTargetMachine;
Andrew Lenhartha1b5ca22005-01-22 23:41:55 +000031 class FunctionPass;
David Greenea31f96c2009-07-14 20:18:05 +000032 class formatted_raw_ostream;
Andrew Lenhartha1b5ca22005-01-22 23:41:55 +000033
Dan Gohmaneabd6472008-05-14 01:58:56 +000034 FunctionPass *createAlphaISelDag(AlphaTargetMachine &TM);
Andrew Lenhartha1b5ca22005-01-22 23:41:55 +000035 FunctionPass *createAlphaPatternInstructionSelector(TargetMachine &TM);
Bruno Cardoso Lopesa194c3a2009-05-30 20:51:52 +000036 FunctionPass *createAlphaJITCodeEmitterPass(AlphaTargetMachine &TM,
Bruno Cardoso Lopes5661ea62009-07-06 05:09:34 +000037 JITCodeEmitter &JCE);
Andrew Lenharthf23e3bf2006-09-18 19:44:29 +000038 FunctionPass *createAlphaLLRPPass(AlphaTargetMachine &tm);
Andrew Lenharth692e4152006-10-31 16:49:55 +000039 FunctionPass *createAlphaBranchSelectionPass();
Andrew Lenharthf23e3bf2006-09-18 19:44:29 +000040
Andrew Lenhartha1b5ca22005-01-22 23:41:55 +000041} // end namespace llvm;
42
Andrew Lenhartha1b5ca22005-01-22 23:41:55 +000043#endif