annotate llvm/lib/Target/Hexagon/HexagonScheduleV67T.td @ 152:e8a9b4f4d755

pull from 146
author anatofuz
date Wed, 11 Mar 2020 18:29:16 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 //=- HexagonScheduleV67T.td - Hexagon V67 Tiny Core Scheduling Definitions --=//
anatofuz
parents:
diff changeset
2 //
anatofuz
parents:
diff changeset
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
anatofuz
parents:
diff changeset
4 // See https://llvm.org/LICENSE.txt for license information.
anatofuz
parents:
diff changeset
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
anatofuz
parents:
diff changeset
6 //
anatofuz
parents:
diff changeset
7 //===----------------------------------------------------------------------===//
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 class HexagonV67TPseudoItin {
anatofuz
parents:
diff changeset
10 list<InstrItinData> V67TPseudoItin_list = [
anatofuz
parents:
diff changeset
11 InstrItinData<PSEUDO, [InstrStage<1, [SLOT0, SLOT2, SLOT3]>], [2, 1, 1],
anatofuz
parents:
diff changeset
12 [Hex_FWD, Hex_FWD, Hex_FWD]>,
anatofuz
parents:
diff changeset
13 InstrItinData<PSEUDOM, [InstrStage<1, [SLOT2, SLOT3], 0>,
anatofuz
parents:
diff changeset
14 InstrStage<1, [SLOT2, SLOT3]>],
anatofuz
parents:
diff changeset
15 [2, 1, 1],
anatofuz
parents:
diff changeset
16 [Hex_FWD, Hex_FWD, Hex_FWD]>,
anatofuz
parents:
diff changeset
17 InstrItinData<DUPLEX, [InstrStage<1, [SLOT0]>],
anatofuz
parents:
diff changeset
18 [2, 1, 1]>,
anatofuz
parents:
diff changeset
19 InstrItinData<tc_ENDLOOP, [InstrStage<1, [SLOT_ENDLOOP]>], [2]>
anatofuz
parents:
diff changeset
20 ];
anatofuz
parents:
diff changeset
21 }
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 // V67TItin_list and HVXItin contain some old itineraries
anatofuz
parents:
diff changeset
24 // still used by a handful of instructions. Hopefully, we will be able to
anatofuz
parents:
diff changeset
25 // get rid of them soon.
anatofuz
parents:
diff changeset
26 def HexagonV67TItinList : DepScalarItinV67T,
anatofuz
parents:
diff changeset
27 DepHVXItinV67, HVXItin, HexagonV67TPseudoItin {
anatofuz
parents:
diff changeset
28 list<InstrItinData> V67TItin_list = [
anatofuz
parents:
diff changeset
29 InstrItinData<LD_tc_ld_SLOT01, [InstrStage<1, [SLOT0]>],
anatofuz
parents:
diff changeset
30 [3, 1, 1],
anatofuz
parents:
diff changeset
31 [Hex_FWD, Hex_FWD, Hex_FWD]>,
anatofuz
parents:
diff changeset
32 InstrItinData<ST_tc_st_SLOT01, [InstrStage<1, [SLOT0]>],
anatofuz
parents:
diff changeset
33 [1, 1, 3, 3],
anatofuz
parents:
diff changeset
34 [Hex_FWD, Hex_FWD]>
anatofuz
parents:
diff changeset
35 ];
anatofuz
parents:
diff changeset
36
anatofuz
parents:
diff changeset
37 list<InstrItinData> ItinList =
anatofuz
parents:
diff changeset
38 !listconcat(DepScalarItinV67T_list,
anatofuz
parents:
diff changeset
39 DepHVXItinV67_list, V67TItin_list,
anatofuz
parents:
diff changeset
40 HVXItin_list, V67TPseudoItin_list);
anatofuz
parents:
diff changeset
41 }
anatofuz
parents:
diff changeset
42
anatofuz
parents:
diff changeset
43 def HexagonItinerariesV67T :
anatofuz
parents:
diff changeset
44 ProcessorItineraries<[SLOT0, SLOT1, SLOT2, SLOT3, SLOT_ENDLOOP,
anatofuz
parents:
diff changeset
45 CVI_ST, CVI_XLANE, CVI_SHIFT, CVI_MPY0, CVI_MPY1,
anatofuz
parents:
diff changeset
46 CVI_LD, CVI_XLSHF, CVI_MPY01, CVI_ALL,
anatofuz
parents:
diff changeset
47 CVI_ALL_NOMEM, CVI_ZW],
anatofuz
parents:
diff changeset
48 [Hex_FWD, HVX_FWD],
anatofuz
parents:
diff changeset
49 HexagonV67TItinList.ItinList>;
anatofuz
parents:
diff changeset
50
anatofuz
parents:
diff changeset
51
anatofuz
parents:
diff changeset
52 def HexagonModelV67T : SchedMachineModel {
anatofuz
parents:
diff changeset
53 let IssueWidth = 3;
anatofuz
parents:
diff changeset
54 let Itineraries = HexagonItinerariesV67T;
anatofuz
parents:
diff changeset
55 let LoadLatency = 1;
anatofuz
parents:
diff changeset
56 let CompleteModel = 0;
anatofuz
parents:
diff changeset
57 }
anatofuz
parents:
diff changeset
58
anatofuz
parents:
diff changeset
59 //===----------------------------------------------------------------------===//
anatofuz
parents:
diff changeset
60 // Hexagon V67 Tiny Core Resource Definitions -
anatofuz
parents:
diff changeset
61 //===----------------------------------------------------------------------===//