the various ConstantExpr::get*Ty methods existed to work with issues around
[llvm/stm8.git] / lib / Target / Alpha / Alpha.h
blob435c95cd030690e81a5d1e3e9d7b8320a5142b75
1 //===-- Alpha.h - Top-level interface for Alpha representation --*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the entry points for global functions defined in the LLVM
11 // Alpha back-end.
13 //===----------------------------------------------------------------------===//
15 #ifndef TARGET_ALPHA_H
16 #define TARGET_ALPHA_H
18 #include "llvm/Target/TargetMachine.h"
20 namespace llvm {
21 namespace Alpha {
22 // These describe LDAx
24 static const int IMM_LOW = -32768;
25 static const int IMM_HIGH = 32767;
26 static const int IMM_MULT = 65536;
29 class AlphaTargetMachine;
30 class FunctionPass;
31 class formatted_raw_ostream;
33 FunctionPass *createAlphaISelDag(AlphaTargetMachine &TM);
34 FunctionPass *createAlphaPatternInstructionSelector(TargetMachine &TM);
35 FunctionPass *createAlphaJITCodeEmitterPass(AlphaTargetMachine &TM,
36 JITCodeEmitter &JCE);
37 FunctionPass *createAlphaLLRPPass(AlphaTargetMachine &tm);
38 FunctionPass *createAlphaBranchSelectionPass();
40 extern Target TheAlphaTarget;
42 } // end namespace llvm;
44 // Defines symbolic names for Alpha registers. This defines a mapping from
45 // register name to register number.
48 #define GET_REGINFO_ENUM
49 #include "AlphaGenRegisterInfo.inc"
51 // Defines symbolic names for the Alpha instructions.
53 #define GET_INSTRINFO_ENUM
54 #include "AlphaGenInstrInfo.inc"
56 #endif