Commit f53cd7e
[AMDGPU] Make maximum hard clause size a subtarget feature
gfx11 chips may, in some conditions, behave incorrectly with S_CLAUSE
instructions (hard clauses) containing more than 32 operations (that is,
whose arguments exceed 0x1f). However, gfx10 targets will work
successfully with clauses of up to length 63.
Therefore, define the MaxHardClauseLength property on GCNSubtarget and
make it a subtarget feature via tablegen, thus allowing us to specify,
both now and in the future, the maximum viable size of clauses on
various hardware from the tablegen definition. If MaxHardClauseLength is
0, which is the default, the hardware does not support hard clauses.
Cherry-pick of llvm#81287
Change-Id: Id55b25ae70dd2dc521b45ff71058c5a183a97fda1 parent 33efb91 commit f53cd7e
File tree
5 files changed
+56
-16
lines changed- llvm
- lib/Target/AMDGPU
- test/CodeGen/AMDGPU
5 files changed
+56
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
230 | 245 | | |
231 | 246 | | |
232 | 247 | | |
| |||
986 | 1001 | | |
987 | 1002 | | |
988 | 1003 | | |
989 | | - | |
| 1004 | + | |
| 1005 | + | |
990 | 1006 | | |
991 | 1007 | | |
992 | 1008 | | |
| |||
1005 | 1021 | | |
1006 | 1022 | | |
1007 | 1023 | | |
1008 | | - | |
| 1024 | + | |
| 1025 | + | |
1009 | 1026 | | |
1010 | 1027 | | |
1011 | 1028 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
164 | 168 | | |
165 | 169 | | |
166 | 170 | | |
| |||
1078 | 1082 | | |
1079 | 1083 | | |
1080 | 1084 | | |
1081 | | - | |
| 1085 | + | |
1082 | 1086 | | |
1083 | 1087 | | |
1084 | 1088 | | |
| |||
1129 | 1133 | | |
1130 | 1134 | | |
1131 | 1135 | | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
1132 | 1141 | | |
1133 | 1142 | | |
1134 | 1143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 46 | | |
52 | 47 | | |
53 | 48 | | |
| |||
182 | 177 | | |
183 | 178 | | |
184 | 179 | | |
185 | | - | |
| 180 | + | |
| 181 | + | |
186 | 182 | | |
187 | 183 | | |
188 | 184 | | |
| |||
223 | 219 | | |
224 | 220 | | |
225 | 221 | | |
226 | | - | |
| 222 | + | |
227 | 223 | | |
228 | 224 | | |
229 | 225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3309 | 3309 | | |
3310 | 3310 | | |
3311 | 3311 | | |
3312 | | - | |
| 3312 | + | |
3313 | 3313 | | |
3314 | 3314 | | |
3315 | 3315 | | |
| |||
0 commit comments