2012-12-12 05:25:42 +08:00
|
|
|
//===-- R600Schedule.td - R600 Scheduling definitions ------*- tablegen -*-===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2012-12-12 05:25:42 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// 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
|
2016-06-10 10:18:02 +08:00
|
|
|
// slot has been removed.
|
2012-12-12 05:25:42 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|
|
|
|
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 23:47:08 +08:00
|
|
|
def XALU : InstrItinClass;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2013-04-30 08:14:17 +08:00
|
|
|
def R600_VLIW5_Itin : ProcessorItineraries <
|
2012-12-12 05:25:42 +08: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 10:39:20 +08:00
|
|
|
InstrItinData<VecALU, [InstrStage<1, [ALU_X, ALU_Y, ALU_Z, ALU_W]>]>,
|
2012-12-12 05:25:42 +08:00
|
|
|
InstrItinData<TransALU, [InstrStage<1, [TRANS]>]>,
|
2013-06-28 23:47:08 +08:00
|
|
|
InstrItinData<XALU, [InstrStage<1, [ALU_X]>]>,
|
2012-12-12 05:25:42 +08:00
|
|
|
InstrItinData<NullALU, [InstrStage<1, [ALU_NULL]>]>
|
|
|
|
]
|
|
|
|
>;
|
2013-04-30 08:14:17 +08: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 10:39:20 +08:00
|
|
|
InstrItinData<VecALU, [InstrStage<1, [ALU_X, ALU_Y, ALU_Z, ALU_W]>]>,
|
2013-04-30 08:14:17 +08:00
|
|
|
InstrItinData<TransALU, [InstrStage<1, [ALU_NULL]>]>,
|
|
|
|
InstrItinData<NullALU, [InstrStage<1, [ALU_NULL]>]>
|
|
|
|
]
|
|
|
|
>;
|