Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 1 | //===-- 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 |
Matt Arsenault | 37fefd6 | 2016-06-10 02:18:02 +0000 | [diff] [blame] | 12 | // slot has been removed. |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 13 | // |
| 14 | //===----------------------------------------------------------------------===// |
| 15 | |
| 16 | |
| 17 | def ALU_X : FuncUnit; |
| 18 | def ALU_Y : FuncUnit; |
| 19 | def ALU_Z : FuncUnit; |
| 20 | def ALU_W : FuncUnit; |
| 21 | def TRANS : FuncUnit; |
| 22 | |
| 23 | def AnyALU : InstrItinClass; |
| 24 | def VecALU : InstrItinClass; |
| 25 | def TransALU : InstrItinClass; |
Tom Stellard | c026e8b | 2013-06-28 15:47:08 +0000 | [diff] [blame] | 26 | def XALU : InstrItinClass; |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 27 | |
Vincent Lejeune | 076c0b2 | 2013-04-30 00:14:17 +0000 | [diff] [blame] | 28 | def R600_VLIW5_Itin : ProcessorItineraries < |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 29 | [ALU_X, ALU_Y, ALU_Z, ALU_W, TRANS, ALU_NULL], |
| 30 | [], |
| 31 | [ |
| 32 | InstrItinData<AnyALU, [InstrStage<1, [ALU_X, ALU_Y, ALU_Z, ALU_W, TRANS]>]>, |
Tom Stellard | 9d2e150 | 2013-06-25 02:39:20 +0000 | [diff] [blame] | 33 | InstrItinData<VecALU, [InstrStage<1, [ALU_X, ALU_Y, ALU_Z, ALU_W]>]>, |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 34 | InstrItinData<TransALU, [InstrStage<1, [TRANS]>]>, |
Tom Stellard | c026e8b | 2013-06-28 15:47:08 +0000 | [diff] [blame] | 35 | InstrItinData<XALU, [InstrStage<1, [ALU_X]>]>, |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 36 | InstrItinData<NullALU, [InstrStage<1, [ALU_NULL]>]> |
| 37 | ] |
| 38 | >; |
Vincent Lejeune | 076c0b2 | 2013-04-30 00:14:17 +0000 | [diff] [blame] | 39 | |
| 40 | def R600_VLIW4_Itin : ProcessorItineraries < |
| 41 | [ALU_X, ALU_Y, ALU_Z, ALU_W, ALU_NULL], |
| 42 | [], |
| 43 | [ |
| 44 | InstrItinData<AnyALU, [InstrStage<1, [ALU_X, ALU_Y, ALU_Z, ALU_W]>]>, |
Tom Stellard | 9d2e150 | 2013-06-25 02:39:20 +0000 | [diff] [blame] | 45 | InstrItinData<VecALU, [InstrStage<1, [ALU_X, ALU_Y, ALU_Z, ALU_W]>]>, |
Vincent Lejeune | 076c0b2 | 2013-04-30 00:14:17 +0000 | [diff] [blame] | 46 | InstrItinData<TransALU, [InstrStage<1, [ALU_NULL]>]>, |
| 47 | InstrItinData<NullALU, [InstrStage<1, [ALU_NULL]>]> |
| 48 | ] |
| 49 | >; |