1 //=- AArch64SchedA57WriteRes.td - ARM Cortex-A57 Write Res ---*- tablegen -*-=//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Contains all of the Cortex-A57 specific SchedWriteRes types. The approach
10 // below is to define a generic SchedWriteRes for every combination of
11 // latency and microOps. The naming conventions is to use a prefix, one field
12 // for latency, and one or more microOp count/type designators.
15 // MicroOp Count/Types: #(B|I|M|L|S|X|W|V)
17 // e.g. A57Write_6cyc_1I_6S_4V means the total latency is 6 and there are
18 // 11 micro-ops to be issued down one I pipe, six S pipes and four V pipes.
20 //===----------------------------------------------------------------------===//
22 //===----------------------------------------------------------------------===//
23 // Define Generic 1 micro-op types
25 def A57Write_5cyc_1L : SchedWriteRes<[A57UnitL]> { let Latency = 5; }
26 def A57Write_5cyc_1M : SchedWriteRes<[A57UnitM]> { let Latency = 5; }
27 def A57Write_5cyc_1V : SchedWriteRes<[A57UnitV]> { let Latency = 5; }
28 def A57Write_5cyc_1W : SchedWriteRes<[A57UnitW]> { let Latency = 5; }
29 def A57Write_10cyc_1V : SchedWriteRes<[A57UnitV]> { let Latency = 10; }
30 def A57Write_17cyc_1W : SchedWriteRes<[A57UnitW]> { let Latency = 17;
31 let ResourceCycles = [17]; }
32 def A57Write_19cyc_1M : SchedWriteRes<[A57UnitM]> { let Latency = 19;
33 let ResourceCycles = [19]; }
34 def A57Write_1cyc_1B : SchedWriteRes<[A57UnitB]> { let Latency = 1; }
35 def A57Write_1cyc_1I : SchedWriteRes<[A57UnitI]> { let Latency = 1; }
36 def A57Write_1cyc_1S : SchedWriteRes<[A57UnitS]> { let Latency = 1; }
37 def A57Write_2cyc_1M : SchedWriteRes<[A57UnitM]> { let Latency = 2; }
38 def A57Write_32cyc_1W : SchedWriteRes<[A57UnitW]> { let Latency = 32;
39 let ResourceCycles = [32]; }
40 def A57Write_35cyc_1M : SchedWriteRes<[A57UnitM]> { let Latency = 35;
41 let ResourceCycles = [35]; }
42 def A57Write_3cyc_1M : SchedWriteRes<[A57UnitM]> { let Latency = 3; }
43 def A57Write_3cyc_1V : SchedWriteRes<[A57UnitV]> { let Latency = 3; }
44 def A57Write_3cyc_1W : SchedWriteRes<[A57UnitW]> { let Latency = 3; }
45 def A57Write_3cyc_1X : SchedWriteRes<[A57UnitX]> { let Latency = 3; }
46 def A57Write_4cyc_1L : SchedWriteRes<[A57UnitL]> { let Latency = 4; }
47 def A57Write_4cyc_1X : SchedWriteRes<[A57UnitX]> { let Latency = 4; }
48 def A57Write_9cyc_1V : SchedWriteRes<[A57UnitV]> { let Latency = 9; }
49 def A57Write_6cyc_1M : SchedWriteRes<[A57UnitM]> { let Latency = 6; }
50 def A57Write_6cyc_1V : SchedWriteRes<[A57UnitV]> { let Latency = 6; }
53 //===----------------------------------------------------------------------===//
54 // Define Generic 2 micro-op types
56 def A57Write_64cyc_2W : SchedWriteRes<[A57UnitW, A57UnitW]> {
59 let ResourceCycles = [32, 32];
61 def A57Write_6cyc_1I_1L : SchedWriteRes<[A57UnitI,
66 def A57Write_7cyc_1V_1X : SchedWriteRes<[A57UnitV,
71 def A57Write_8cyc_1L_1V : SchedWriteRes<[A57UnitL,
76 def A57Write_9cyc_2V : SchedWriteRes<[A57UnitV, A57UnitV]> {
80 def A57Write_8cyc_2X : SchedWriteRes<[A57UnitX, A57UnitX]> {
84 def A57Write_6cyc_2L : SchedWriteRes<[A57UnitL, A57UnitL]> {
88 def A57Write_6cyc_2V : SchedWriteRes<[A57UnitV, A57UnitV]> {
92 def A57Write_6cyc_2W : SchedWriteRes<[A57UnitW, A57UnitW]> {
96 def A57Write_5cyc_1I_1L : SchedWriteRes<[A57UnitI,
101 def A57Write_5cyc_2V : SchedWriteRes<[A57UnitV, A57UnitV]> {
105 def A57Write_5cyc_2X : SchedWriteRes<[A57UnitX, A57UnitX]> {
109 def A57Write_10cyc_1L_1V : SchedWriteRes<[A57UnitL,
114 def A57Write_10cyc_2V : SchedWriteRes<[A57UnitV, A57UnitV]> {
118 def A57Write_1cyc_1B_1I : SchedWriteRes<[A57UnitB,
123 def A57Write_1cyc_1I_1S : SchedWriteRes<[A57UnitI,
128 def A57Write_2cyc_1B_1I : SchedWriteRes<[A57UnitB,
133 def A57Write_2cyc_2S : SchedWriteRes<[A57UnitS, A57UnitS]> {
137 def A57Write_2cyc_2V : SchedWriteRes<[A57UnitV, A57UnitV]> {
141 def A57Write_34cyc_2W : SchedWriteRes<[A57UnitW, A57UnitW]> {
144 let ResourceCycles = [17, 17];
146 def A57Write_3cyc_1I_1M : SchedWriteRes<[A57UnitI,
151 def A57Write_3cyc_1I_1S : SchedWriteRes<[A57UnitI,
156 def A57Write_3cyc_1S_1V : SchedWriteRes<[A57UnitS,
161 def A57Write_3cyc_2V : SchedWriteRes<[A57UnitV, A57UnitV]> {
165 def A57Write_4cyc_1I_1L : SchedWriteRes<[A57UnitI,
170 def A57Write_4cyc_2X : SchedWriteRes<[A57UnitX, A57UnitX]> {
176 //===----------------------------------------------------------------------===//
177 // Define Generic 3 micro-op types
179 def A57Write_10cyc_3V : SchedWriteRes<[A57UnitV, A57UnitV, A57UnitV]> {
183 def A57Write_2cyc_1I_2S : SchedWriteRes<[A57UnitI,
184 A57UnitS, A57UnitS]> {
188 def A57Write_3cyc_1I_1S_1V : SchedWriteRes<[A57UnitI,
194 def A57Write_3cyc_1M_2S : SchedWriteRes<[A57UnitM,
195 A57UnitS, A57UnitS]> {
199 def A57Write_3cyc_3S : SchedWriteRes<[A57UnitS, A57UnitS, A57UnitS]> {
203 def A57Write_3cyc_2S_1V : SchedWriteRes<[A57UnitS, A57UnitS,
208 def A57Write_5cyc_1I_2L : SchedWriteRes<[A57UnitI,
209 A57UnitL, A57UnitL]> {
213 def A57Write_6cyc_1I_2L : SchedWriteRes<[A57UnitI,
214 A57UnitL, A57UnitL]> {
218 def A57Write_6cyc_3V : SchedWriteRes<[A57UnitV, A57UnitV, A57UnitV]> {
222 def A57Write_7cyc_3L : SchedWriteRes<[A57UnitL, A57UnitL, A57UnitL]> {
226 def A57Write_8cyc_1I_1L_1V : SchedWriteRes<[A57UnitI,
232 def A57Write_8cyc_1L_2V : SchedWriteRes<[A57UnitL,
233 A57UnitV, A57UnitV]> {
237 def A57Write_8cyc_3V : SchedWriteRes<[A57UnitV, A57UnitV, A57UnitV]> {
241 def A57Write_9cyc_3V : SchedWriteRes<[A57UnitV, A57UnitV, A57UnitV]> {
247 //===----------------------------------------------------------------------===//
248 // Define Generic 4 micro-op types
250 def A57Write_2cyc_2I_2S : SchedWriteRes<[A57UnitI, A57UnitI,
251 A57UnitS, A57UnitS]> {
255 def A57Write_3cyc_2I_2S : SchedWriteRes<[A57UnitI, A57UnitI,
256 A57UnitS, A57UnitS]> {
260 def A57Write_3cyc_1I_3S : SchedWriteRes<[A57UnitI,
261 A57UnitS, A57UnitS, A57UnitS]> {
265 def A57Write_3cyc_1I_2S_1V : SchedWriteRes<[A57UnitI,
271 def A57Write_4cyc_4S : SchedWriteRes<[A57UnitS, A57UnitS,
272 A57UnitS, A57UnitS]> {
276 def A57Write_7cyc_1I_3L : SchedWriteRes<[A57UnitI,
277 A57UnitL, A57UnitL, A57UnitL]> {
281 def A57Write_5cyc_2I_2L : SchedWriteRes<[A57UnitI, A57UnitI,
282 A57UnitL, A57UnitL]> {
286 def A57Write_8cyc_1I_1L_2V : SchedWriteRes<[A57UnitI,
288 A57UnitV, A57UnitV]> {
292 def A57Write_8cyc_4L : SchedWriteRes<[A57UnitL, A57UnitL,
293 A57UnitL, A57UnitL]> {
297 def A57Write_9cyc_2L_2V : SchedWriteRes<[A57UnitL, A57UnitL,
298 A57UnitV, A57UnitV]> {
302 def A57Write_9cyc_1L_3V : SchedWriteRes<[A57UnitL,
303 A57UnitV, A57UnitV, A57UnitV]> {
307 def A57Write_12cyc_4V : SchedWriteRes<[A57UnitV, A57UnitV,
308 A57UnitV, A57UnitV]> {
314 //===----------------------------------------------------------------------===//
315 // Define Generic 5 micro-op types
317 def A57Write_3cyc_3S_2V : SchedWriteRes<[A57UnitS, A57UnitS, A57UnitS,
318 A57UnitV, A57UnitV]> {
322 def A57Write_8cyc_1I_4L : SchedWriteRes<[A57UnitI,
324 A57UnitL, A57UnitL]> {
328 def A57Write_4cyc_1I_4S : SchedWriteRes<[A57UnitI,
330 A57UnitS, A57UnitS]> {
334 def A57Write_9cyc_1I_2L_2V : SchedWriteRes<[A57UnitI,
336 A57UnitV, A57UnitV]> {
340 def A57Write_9cyc_1I_1L_3V : SchedWriteRes<[A57UnitI,
342 A57UnitV, A57UnitV, A57UnitV]> {
346 def A57Write_9cyc_2L_3V : SchedWriteRes<[A57UnitL, A57UnitL,
347 A57UnitV, A57UnitV, A57UnitV]> {
351 def A57Write_9cyc_5V : SchedWriteRes<[A57UnitV, A57UnitV, A57UnitV,
352 A57UnitV, A57UnitV]> {
358 //===----------------------------------------------------------------------===//
359 // Define Generic 6 micro-op types
361 def A57Write_3cyc_1I_3S_2V : SchedWriteRes<[A57UnitI,
362 A57UnitS, A57UnitS, A57UnitS,
363 A57UnitV, A57UnitV]> {
367 def A57Write_4cyc_2I_4S : SchedWriteRes<[A57UnitI, A57UnitI,
369 A57UnitS, A57UnitS]> {
373 def A57Write_4cyc_4S_2V : SchedWriteRes<[A57UnitS, A57UnitS,
375 A57UnitV, A57UnitV]> {
379 def A57Write_6cyc_6S : SchedWriteRes<[A57UnitS, A57UnitS, A57UnitS,
380 A57UnitS, A57UnitS, A57UnitS]> {
384 def A57Write_9cyc_1I_2L_3V : SchedWriteRes<[A57UnitI,
386 A57UnitV, A57UnitV, A57UnitV]> {
390 def A57Write_9cyc_1I_1L_4V : SchedWriteRes<[A57UnitI,
393 A57UnitV, A57UnitV]> {
397 def A57Write_9cyc_2L_4V : SchedWriteRes<[A57UnitL, A57UnitL,
399 A57UnitV, A57UnitV]> {
405 //===----------------------------------------------------------------------===//
406 // Define Generic 7 micro-op types
408 def A57Write_10cyc_3L_4V : SchedWriteRes<[A57UnitL, A57UnitL, A57UnitL,
410 A57UnitV, A57UnitV]> {
414 def A57Write_4cyc_1I_4S_2V : SchedWriteRes<[A57UnitI,
417 A57UnitV, A57UnitV]> {
421 def A57Write_6cyc_1I_6S : SchedWriteRes<[A57UnitI,
422 A57UnitS, A57UnitS, A57UnitS,
423 A57UnitS, A57UnitS, A57UnitS]> {
427 def A57Write_9cyc_1I_2L_4V : SchedWriteRes<[A57UnitI,
430 A57UnitV, A57UnitV]> {
434 def A57Write_12cyc_7V : SchedWriteRes<[A57UnitV, A57UnitV, A57UnitV,
436 A57UnitV, A57UnitV]> {
442 //===----------------------------------------------------------------------===//
443 // Define Generic 8 micro-op types
445 def A57Write_10cyc_1I_3L_4V : SchedWriteRes<[A57UnitI,
446 A57UnitL, A57UnitL, A57UnitL,
448 A57UnitV, A57UnitV]> {
452 def A57Write_11cyc_4L_4V : SchedWriteRes<[A57UnitL, A57UnitL,
455 A57UnitV, A57UnitV]> {
459 def A57Write_8cyc_8S : SchedWriteRes<[A57UnitS, A57UnitS,
462 A57UnitS, A57UnitS]> {
468 //===----------------------------------------------------------------------===//
469 // Define Generic 9 micro-op types
471 def A57Write_8cyc_1I_8S : SchedWriteRes<[A57UnitI,
475 A57UnitS, A57UnitS]> {
479 def A57Write_11cyc_1I_4L_4V : SchedWriteRes<[A57UnitI,
483 A57UnitV, A57UnitV]> {
487 def A57Write_15cyc_9V : SchedWriteRes<[A57UnitV, A57UnitV, A57UnitV,
488 A57UnitV, A57UnitV, A57UnitV,
489 A57UnitV, A57UnitV, A57UnitV]> {
495 //===----------------------------------------------------------------------===//
496 // Define Generic 10 micro-op types
498 def A57Write_6cyc_6S_4V : SchedWriteRes<[A57UnitS, A57UnitS, A57UnitS,
499 A57UnitS, A57UnitS, A57UnitS,
501 A57UnitV, A57UnitV]> {
503 let NumMicroOps = 10;
507 //===----------------------------------------------------------------------===//
508 // Define Generic 11 micro-op types
510 def A57Write_6cyc_1I_6S_4V : SchedWriteRes<[A57UnitI,
511 A57UnitS, A57UnitS, A57UnitS,
512 A57UnitS, A57UnitS, A57UnitS,
514 A57UnitV, A57UnitV]> {
516 let NumMicroOps = 11;
520 //===----------------------------------------------------------------------===//
521 // Define Generic 12 micro-op types
523 def A57Write_8cyc_8S_4V : SchedWriteRes<[A57UnitS, A57UnitS, A57UnitS, A57UnitS,
524 A57UnitS, A57UnitS, A57UnitS, A57UnitS,
526 A57UnitV, A57UnitV]> {
528 let NumMicroOps = 12;
531 //===----------------------------------------------------------------------===//
532 // Define Generic 13 micro-op types
534 def A57Write_8cyc_1I_8S_4V : SchedWriteRes<[A57UnitI,
535 A57UnitS, A57UnitS, A57UnitS,
536 A57UnitS, A57UnitS, A57UnitS,
539 A57UnitV, A57UnitV]> {
541 let NumMicroOps = 13;