2012-12-11 21:25:42 +00:00
|
|
|
//===-- R600Schedule.td - R600 Scheduling definitions ------*- tablegen -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// R600 has a VLIW architecture. On pre-cayman cards there are 5 instruction
|
|
|
|
// slots ALU.X, ALU.Y, ALU.Z, ALU.W, and TRANS. For cayman cards, the TRANS
|
|
|
|
// slot has been removed.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|
|
|
|
def ALU_X : FuncUnit;
|
|
|
|
def ALU_Y : FuncUnit;
|
|
|
|
def ALU_Z : FuncUnit;
|
|
|
|
def ALU_W : FuncUnit;
|
|
|
|
def TRANS : FuncUnit;
|
|
|
|
|
|
|
|
def AnyALU : InstrItinClass;
|
|
|
|
def VecALU : InstrItinClass;
|
|
|
|
def TransALU : InstrItinClass;
|
2013-06-28 15:47:08 +00:00
|
|
|
def XALU : InstrItinClass;
|
2012-12-11 21:25:42 +00:00
|
|
|
|
2013-04-30 00:14:17 +00:00
|
|
|
def R600_VLIW5_Itin : ProcessorItineraries <
|
2012-12-11 21:25:42 +00:00
|
|
|
[ALU_X, ALU_Y, ALU_Z, ALU_W, TRANS, ALU_NULL],
|
|
|
|
[],
|
|
|
|
[
|
|
|
|
InstrItinData<AnyALU, [InstrStage<1, [ALU_X, ALU_Y, ALU_Z, ALU_W, TRANS]>]>,
|
2013-06-25 02:39:20 +00:00
|
|
|
InstrItinData<VecALU, [InstrStage<1, [ALU_X, ALU_Y, ALU_Z, ALU_W]>]>,
|
2012-12-11 21:25:42 +00:00
|
|
|
InstrItinData<TransALU, [InstrStage<1, [TRANS]>]>,
|
2013-06-28 15:47:08 +00:00
|
|
|
InstrItinData<XALU, [InstrStage<1, [ALU_X]>]>,
|
2012-12-11 21:25:42 +00:00
|
|
|
InstrItinData<NullALU, [InstrStage<1, [ALU_NULL]>]>
|
|
|
|
]
|
|
|
|
>;
|
2013-04-30 00:14:17 +00:00
|
|
|
|
|
|
|
def R600_VLIW4_Itin : ProcessorItineraries <
|
|
|
|
[ALU_X, ALU_Y, ALU_Z, ALU_W, ALU_NULL],
|
|
|
|
[],
|
|
|
|
[
|
|
|
|
InstrItinData<AnyALU, [InstrStage<1, [ALU_X, ALU_Y, ALU_Z, ALU_W]>]>,
|
2013-06-25 02:39:20 +00:00
|
|
|
InstrItinData<VecALU, [InstrStage<1, [ALU_X, ALU_Y, ALU_Z, ALU_W]>]>,
|
2013-04-30 00:14:17 +00:00
|
|
|
InstrItinData<TransALU, [InstrStage<1, [ALU_NULL]>]>,
|
|
|
|
InstrItinData<NullALU, [InstrStage<1, [ALU_NULL]>]>
|
|
|
|
]
|
|
|
|
>;
|