blob: 7cbb0f181f774c660062dacf487d4d8dfb1e727b [file] [log] [blame]
Misha Brukman2a8350a2005-02-05 02:24:26 +00001//===- Alpha.td - Describe the Alpha Target Machine --------*- tablegen -*-===//
Andrew Lenharth304d0f32005-01-22 23:41:55 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by the LLVM research group and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10//
11//===----------------------------------------------------------------------===//
12
13// Get the target-independent interfaces which we are implementing...
14//
15include "../Target.td"
16
17//Alpha is little endian
18
19//===----------------------------------------------------------------------===//
Chris Lattner5882e402005-10-23 22:08:45 +000020// Subtarget Features
21//===----------------------------------------------------------------------===//
22
Jim Laskeyf0c2be42005-10-26 17:28:23 +000023def FeatureCIX : SubtargetFeature<"CIX", "bool", "HasCT",
24 "Enable CIX extentions">;
25def FeatureFIX : SubtargetFeature<"FIX", "bool", "HasF2I",
26 "Enable FIX extentions">;
Chris Lattner5882e402005-10-23 22:08:45 +000027
28//===----------------------------------------------------------------------===//
Andrew Lenharth304d0f32005-01-22 23:41:55 +000029// Register File Description
30//===----------------------------------------------------------------------===//
31
32include "AlphaRegisterInfo.td"
33
34//===----------------------------------------------------------------------===//
35// Instruction Descriptions
36//===----------------------------------------------------------------------===//
37
38include "AlphaInstrInfo.td"
39
40def AlphaInstrInfo : InstrInfo {
41 let PHIInst = PHI;
42
43 // Define how we want to layout our target-specific information field.
44 // let TSFlagsFields = [];
45 // let TSFlagsShifts = [];
46}
47
Chris Lattner5882e402005-10-23 22:08:45 +000048//===----------------------------------------------------------------------===//
49// Alpha Processor Definitions
50//===----------------------------------------------------------------------===//
51
52def : Processor<"generic", NoItineraries, []>;
53def : Processor<"pca56" , NoItineraries, []>;
54def : Processor<"ev56" , NoItineraries, []>;
55def : Processor<"ev6" , NoItineraries, [FeatureFIX]>;
56def : Processor<"ev67" , NoItineraries, [FeatureFIX, FeatureCIX]>;
57
58//===----------------------------------------------------------------------===//
59// The Alpha Target
60//===----------------------------------------------------------------------===//
61
62
Andrew Lenharth304d0f32005-01-22 23:41:55 +000063def Alpha : Target {
64 // Pointers on Alpha are 64-bits in size.
65 let PointerType = i64;
66
67 let CalleeSavedRegisters =
68 //saved regs
69 [R9, R10, R11, R12, R13, R14,
70 //Frame pointer
Andrew Lenharth2513ddc2005-04-05 20:51:46 +000071// R15,
Andrew Lenharth304d0f32005-01-22 23:41:55 +000072 //return address
Andrew Lenharth3f5aa1c2005-06-23 23:42:05 +000073// R26,
Andrew Lenharth304d0f32005-01-22 23:41:55 +000074 //Stack Pointer
Andrew Lenharth2513ddc2005-04-05 20:51:46 +000075// R30,
Andrew Lenharth304d0f32005-01-22 23:41:55 +000076 F2, F3, F4, F5, F6, F7, F8, F9];
77
78 // Pull in Instruction Info:
79 let InstructionSet = AlphaInstrInfo;
80}