blob: 207233d7e761bce44ee97cdf526631991223fa01 [file] [log] [blame]
Tom Stellard75aadc22012-12-11 21:25:42 +00001//===-- R600Schedule.td - R600 Scheduling definitions ------*- tablegen -*-===//
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// R600 has a VLIW architecture. On pre-cayman cards there are 5 instruction
11// slots ALU.X, ALU.Y, ALU.Z, ALU.W, and TRANS. For cayman cards, the TRANS
12// slot has been removed.
13//
14//===----------------------------------------------------------------------===//
15
16
17def ALU_X : FuncUnit;
18def ALU_Y : FuncUnit;
19def ALU_Z : FuncUnit;
20def ALU_W : FuncUnit;
21def TRANS : FuncUnit;
22
23def AnyALU : InstrItinClass;
24def VecALU : InstrItinClass;
25def TransALU : InstrItinClass;
26
Vincent Lejeune076c0b22013-04-30 00:14:17 +000027def R600_VLIW5_Itin : ProcessorItineraries <
Tom Stellard75aadc22012-12-11 21:25:42 +000028 [ALU_X, ALU_Y, ALU_Z, ALU_W, TRANS, ALU_NULL],
29 [],
30 [
31 InstrItinData<AnyALU, [InstrStage<1, [ALU_X, ALU_Y, ALU_Z, ALU_W, TRANS]>]>,
Tom Stellard9d2e1502013-06-25 02:39:20 +000032 InstrItinData<VecALU, [InstrStage<1, [ALU_X, ALU_Y, ALU_Z, ALU_W]>]>,
Tom Stellard75aadc22012-12-11 21:25:42 +000033 InstrItinData<TransALU, [InstrStage<1, [TRANS]>]>,
34 InstrItinData<NullALU, [InstrStage<1, [ALU_NULL]>]>
35 ]
36>;
Vincent Lejeune076c0b22013-04-30 00:14:17 +000037
38def R600_VLIW4_Itin : ProcessorItineraries <
39 [ALU_X, ALU_Y, ALU_Z, ALU_W, ALU_NULL],
40 [],
41 [
42 InstrItinData<AnyALU, [InstrStage<1, [ALU_X, ALU_Y, ALU_Z, ALU_W]>]>,
Tom Stellard9d2e1502013-06-25 02:39:20 +000043 InstrItinData<VecALU, [InstrStage<1, [ALU_X, ALU_Y, ALU_Z, ALU_W]>]>,
Vincent Lejeune076c0b22013-04-30 00:14:17 +000044 InstrItinData<TransALU, [InstrStage<1, [ALU_NULL]>]>,
45 InstrItinData<NullALU, [InstrStage<1, [ALU_NULL]>]>
46 ]
47>;