annotate lib/Target/Hexagon/HexagonDepTimingClasses.h @ 129:9ec641e857f8

Fix compile error to update llvm 5.0
author mir3636
date Tue, 12 Dec 2017 19:42:58 +0900
parents 803732b1fca8
children 3a76565eade5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 //===--- HexagonDepTimingClasses.h ----------------------------------------===//
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2 //
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 // The LLVM Compiler Infrastructure
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 //
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 // This file is distributed under the University of Illinois Open Source
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 // License. See LICENSE.TXT for details.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 //
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 //===----------------------------------------------------------------------===//
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 #ifndef TARGET_HEXAGON_HEXAGON_DEP_TIMING_CLASSES_H
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 #define TARGET_HEXAGON_HEXAGON_DEP_TIMING_CLASSES_H
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 #include "HexagonInstrInfo.h"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 namespace llvm {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 inline bool is_TC3x(unsigned SchedClass) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 switch (SchedClass) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 case Hexagon::Sched::tc_1000eb10:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 case Hexagon::Sched::tc_2aaab1e0:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 case Hexagon::Sched::tc_4997da4a:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21 case Hexagon::Sched::tc_5d806107:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22 case Hexagon::Sched::tc_6264c5e0:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23 case Hexagon::Sched::tc_69bb508b:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24 case Hexagon::Sched::tc_8c8041e6:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
25 case Hexagon::Sched::tc_8cb685d9:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
26 case Hexagon::Sched::tc_a12a5971:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
27 case Hexagon::Sched::tc_ae0722f7:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
28 case Hexagon::Sched::tc_ae2c2dc2:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
29 case Hexagon::Sched::tc_bc5561d8:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
30 case Hexagon::Sched::tc_d6a805a8:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
31 case Hexagon::Sched::tc_f055fbb6:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
32 case Hexagon::Sched::tc_feb4974b:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
33 return true;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
34 default:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
35 return false;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
36 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
37 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
38
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
39 inline bool is_TC2early(unsigned SchedClass) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
40 switch (SchedClass) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
41 case Hexagon::Sched::tc_35fb9d13:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
42 case Hexagon::Sched::tc_cbe45117:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
43 return true;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
44 default:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
45 return false;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
46 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
47 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
48
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
49 inline bool is_TC4x(unsigned SchedClass) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
50 switch (SchedClass) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
51 case Hexagon::Sched::tc_09c86199:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
52 case Hexagon::Sched::tc_2d1e6f5c:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
53 case Hexagon::Sched::tc_2e55aa16:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
54 case Hexagon::Sched::tc_3bea1824:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
55 case Hexagon::Sched::tc_e836c161:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
56 case Hexagon::Sched::tc_f1aa2cdb:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
57 return true;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
58 default:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
59 return false;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
60 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
61 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
62
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
63 inline bool is_TC2(unsigned SchedClass) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
64 switch (SchedClass) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
65 case Hexagon::Sched::tc_090485bb:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
66 case Hexagon::Sched::tc_1fe8323c:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
67 case Hexagon::Sched::tc_37326008:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
68 case Hexagon::Sched::tc_3c10f809:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
69 case Hexagon::Sched::tc_47ab9233:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
70 case Hexagon::Sched::tc_485bb57c:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
71 case Hexagon::Sched::tc_511f28f6:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
72 case Hexagon::Sched::tc_583510c7:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
73 case Hexagon::Sched::tc_63cd9d2d:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
74 case Hexagon::Sched::tc_76c4c5ef:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
75 case Hexagon::Sched::tc_7ca2ea10:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
76 case Hexagon::Sched::tc_87601822:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
77 case Hexagon::Sched::tc_88fa2da6:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
78 case Hexagon::Sched::tc_94e6ffd9:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
79 case Hexagon::Sched::tc_ab1b5e74:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
80 case Hexagon::Sched::tc_b0f50e3c:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
81 case Hexagon::Sched::tc_bd16579e:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
82 case Hexagon::Sched::tc_c0cd91a8:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
83 case Hexagon::Sched::tc_ca280e8b:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
84 case Hexagon::Sched::tc_cd321066:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
85 case Hexagon::Sched::tc_d95f4e98:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
86 case Hexagon::Sched::tc_e17ce9ad:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
87 case Hexagon::Sched::tc_f1240c08:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
88 case Hexagon::Sched::tc_faab1248:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
89 return true;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
90 default:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
91 return false;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
92 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
93 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
94
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
95 inline bool is_TC1(unsigned SchedClass) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
96 switch (SchedClass) {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
97 case Hexagon::Sched::tc_07ac815d:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
98 case Hexagon::Sched::tc_1b6011fb:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
99 case Hexagon::Sched::tc_1b834fe7:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
100 case Hexagon::Sched::tc_1e062b18:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
101 case Hexagon::Sched::tc_1f9668cc:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
102 case Hexagon::Sched::tc_43068634:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
103 case Hexagon::Sched::tc_47f0b7ad:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
104 case Hexagon::Sched::tc_537e2013:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
105 case Hexagon::Sched::tc_548f402d:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
106 case Hexagon::Sched::tc_5fa2857c:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
107 case Hexagon::Sched::tc_5fe9fcd0:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
108 case Hexagon::Sched::tc_78b3c689:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
109 case Hexagon::Sched::tc_7c2dcd4d:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
110 case Hexagon::Sched::tc_81a23d44:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
111 case Hexagon::Sched::tc_821c4233:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
112 case Hexagon::Sched::tc_92d1833c:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
113 case Hexagon::Sched::tc_9a13af9d:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
114 case Hexagon::Sched::tc_9c18c9a5:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
115 case Hexagon::Sched::tc_9df8b0dc:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
116 case Hexagon::Sched::tc_9f518242:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
117 case Hexagon::Sched::tc_a1fb80e1:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
118 case Hexagon::Sched::tc_a333d2a9:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
119 case Hexagon::Sched::tc_a87879e8:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
120 case Hexagon::Sched::tc_aad55963:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
121 case Hexagon::Sched::tc_b08b653e:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
122 case Hexagon::Sched::tc_b324366f:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
123 case Hexagon::Sched::tc_b5bfaa60:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
124 case Hexagon::Sched::tc_b86c7e8b:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
125 case Hexagon::Sched::tc_c58f771a:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
126 case Hexagon::Sched::tc_d108a090:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
127 case Hexagon::Sched::tc_d1b5a4b6:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
128 case Hexagon::Sched::tc_d2609065:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
129 case Hexagon::Sched::tc_d63b71d1:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
130 case Hexagon::Sched::tc_e2c31426:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
131 case Hexagon::Sched::tc_e8c7a357:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
132 case Hexagon::Sched::tc_eb07ef6f:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
133 case Hexagon::Sched::tc_f16d5b17:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
134 return true;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
135 default:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
136 return false;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
137 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
138 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
139 } // namespace llvm
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
140
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
141 #endif