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)
16 // Postfix (optional): (XYZ)_Forward
18 // The postfix is added to differentiate SchedWriteRes that are used in
19 // subsequent SchedReadAdvances.
21 // e.g. A57Write_6cyc_1I_6S_4V means the total latency is 6 and there are
22 // 11 micro-ops to be issued down one I pipe, six S pipes and four V pipes.
24 //===----------------------------------------------------------------------===//
26 //===----------------------------------------------------------------------===//
27 // Define Generic 1 micro-op types
29 def A57Write_5cyc_1L : SchedWriteRes<[A57UnitL]> { let Latency = 5; }
30 def A57Write_5cyc_1M : SchedWriteRes<[A57UnitM]> { let Latency = 5; }
31 def A57Write_5cyc_1V : SchedWriteRes<[A57UnitV]> { let Latency = 5; }
32 def A57Write_5cyc_1V_FP_Forward : SchedWriteRes<[A57UnitV]> { let Latency = 5; }
33 def A57Write_5cyc_1W : SchedWriteRes<[A57UnitW]> { let Latency = 5; }
34 def A57Write_5cyc_1W_Mul_Forward : SchedWriteRes<[A57UnitW]> { let Latency = 5; }
35 def A57Write_10cyc_1V : SchedWriteRes<[A57UnitV]> { let Latency = 10; }
36 def A57Write_17cyc_1W : SchedWriteRes<[A57UnitW]> { let Latency = 17;
37 let ReleaseAtCycles = [17]; }
38 def A57Write_19cyc_1M : SchedWriteRes<[A57UnitM]> { let Latency = 19;
39 let ReleaseAtCycles = [19]; }
40 def A57Write_1cyc_1B : SchedWriteRes<[A57UnitB]> { let Latency = 1; }
41 def A57Write_1cyc_1I : SchedWriteRes<[A57UnitI]> { let Latency = 1; }
42 def A57Write_1cyc_1S : SchedWriteRes<[A57UnitS]> { let Latency = 1; }
43 def A57Write_2cyc_1M : SchedWriteRes<[A57UnitM]> { let Latency = 2; }
44 def A57Write_32cyc_1W : SchedWriteRes<[A57UnitW]> { let Latency = 32;
45 let ReleaseAtCycles = [32]; }
46 def A57Write_35cyc_1M : SchedWriteRes<[A57UnitM]> { let Latency = 35;
47 let ReleaseAtCycles = [35]; }
48 def A57Write_3cyc_1M : SchedWriteRes<[A57UnitM]> { let Latency = 3; }
49 def A57Write_3cyc_1V : SchedWriteRes<[A57UnitV]> { let Latency = 3; }
50 def A57Write_3cyc_1W : SchedWriteRes<[A57UnitW]> { let Latency = 3; }
51 def A57Write_3cyc_1X : SchedWriteRes<[A57UnitX]> { let Latency = 3; }
52 def A57Write_4cyc_1L : SchedWriteRes<[A57UnitL]> { let Latency = 4; }
53 def A57Write_4cyc_1X : SchedWriteRes<[A57UnitX]> { let Latency = 4; }
54 def A57Write_4cyc_1X_NonMul_Forward : SchedWriteRes<[A57UnitX]> { let Latency = 4; }
55 def A57Write_9cyc_1V : SchedWriteRes<[A57UnitV]> { let Latency = 9; }
56 def A57Write_6cyc_1M : SchedWriteRes<[A57UnitM]> { let Latency = 6; }
57 def A57Write_6cyc_1V : SchedWriteRes<[A57UnitV]> { let Latency = 6; }
60 //===----------------------------------------------------------------------===//
61 // Define Generic 2 micro-op types
63 def A57Write_64cyc_2W : SchedWriteRes<[A57UnitW, A57UnitW]> {
66 let ReleaseAtCycles = [32, 32];
68 def A57Write_6cyc_1I_1L : SchedWriteRes<[A57UnitI,
73 def A57Write_7cyc_1V_1X : SchedWriteRes<[A57UnitV,
78 def A57Write_8cyc_1L_1V : SchedWriteRes<[A57UnitL,
83 def A57Write_9cyc_2V : SchedWriteRes<[A57UnitV, A57UnitV]> {
87 def A57Write_8cyc_2X : SchedWriteRes<[A57UnitX, A57UnitX]> {
91 def A57Write_6cyc_2L : SchedWriteRes<[A57UnitL, A57UnitL]> {
95 def A57Write_6cyc_2V : SchedWriteRes<[A57UnitV, A57UnitV]> {
99 def A57Write_6cyc_2W : SchedWriteRes<[A57UnitW, A57UnitW]> {
103 def A57Write_6cyc_2W_Mul_Forward : SchedWriteRes<[A57UnitW, A57UnitW]> {
107 def A57Write_5cyc_1I_1L : SchedWriteRes<[A57UnitI,
112 def A57Write_5cyc_2V : SchedWriteRes<[A57UnitV, A57UnitV]> {
116 def A57Write_5cyc_2V_FP_Forward : SchedWriteRes<[A57UnitV, A57UnitV]> {
120 def A57Write_5cyc_2X : SchedWriteRes<[A57UnitX, A57UnitX]> {
124 def A57Write_5cyc_2X_NonMul_Forward : SchedWriteRes<[A57UnitX, A57UnitX]> {
128 def A57Write_10cyc_1L_1V : SchedWriteRes<[A57UnitL,
133 def A57Write_10cyc_2V : SchedWriteRes<[A57UnitV, A57UnitV]> {
137 def A57Write_1cyc_1B_1I : SchedWriteRes<[A57UnitB,
142 def A57Write_1cyc_1I_1S : SchedWriteRes<[A57UnitI,
147 def A57Write_2cyc_1B_1I : SchedWriteRes<[A57UnitB,
152 def A57Write_2cyc_2S : SchedWriteRes<[A57UnitS, A57UnitS]> {
156 def A57Write_2cyc_2V : SchedWriteRes<[A57UnitV, A57UnitV]> {
160 def A57Write_34cyc_2W : SchedWriteRes<[A57UnitW, A57UnitW]> {
163 let ReleaseAtCycles = [17, 17];
165 def A57Write_3cyc_1I_1M : SchedWriteRes<[A57UnitI,
170 def A57Write_3cyc_1I_1S : SchedWriteRes<[A57UnitI,
175 def A57Write_3cyc_1S_1V : SchedWriteRes<[A57UnitS,
180 def A57Write_3cyc_2V : SchedWriteRes<[A57UnitV, A57UnitV]> {
184 def A57Write_4cyc_1I_1L : SchedWriteRes<[A57UnitI,
189 def A57Write_4cyc_2X : SchedWriteRes<[A57UnitX, A57UnitX]> {
195 //===----------------------------------------------------------------------===//
196 // Define Generic 3 micro-op types
198 def A57Write_10cyc_3V : SchedWriteRes<[A57UnitV, A57UnitV, A57UnitV]> {
202 def A57Write_2cyc_1I_2S : SchedWriteRes<[A57UnitI,
203 A57UnitS, A57UnitS]> {
207 def A57Write_3cyc_1I_1S_1V : SchedWriteRes<[A57UnitI,
213 def A57Write_3cyc_1M_2S : SchedWriteRes<[A57UnitM,
214 A57UnitS, A57UnitS]> {
218 def A57Write_3cyc_3S : SchedWriteRes<[A57UnitS, A57UnitS, A57UnitS]> {
222 def A57Write_3cyc_2S_1V : SchedWriteRes<[A57UnitS, A57UnitS,
227 def A57Write_5cyc_1I_2L : SchedWriteRes<[A57UnitI,
228 A57UnitL, A57UnitL]> {
232 def A57Write_6cyc_1I_2L : SchedWriteRes<[A57UnitI,
233 A57UnitL, A57UnitL]> {
237 def A57Write_6cyc_3V : SchedWriteRes<[A57UnitV, A57UnitV, A57UnitV]> {
241 def A57Write_7cyc_3L : SchedWriteRes<[A57UnitL, A57UnitL, A57UnitL]> {
245 def A57Write_8cyc_1I_1L_1V : SchedWriteRes<[A57UnitI,
251 def A57Write_8cyc_1L_2V : SchedWriteRes<[A57UnitL,
252 A57UnitV, A57UnitV]> {
256 def A57Write_8cyc_3V : SchedWriteRes<[A57UnitV, A57UnitV, A57UnitV]> {
260 def A57Write_9cyc_3V : SchedWriteRes<[A57UnitV, A57UnitV, A57UnitV]> {
266 //===----------------------------------------------------------------------===//
267 // Define Generic 4 micro-op types
269 def A57Write_2cyc_2I_2S : SchedWriteRes<[A57UnitI, A57UnitI,
270 A57UnitS, A57UnitS]> {
274 def A57Write_3cyc_2I_2S : SchedWriteRes<[A57UnitI, A57UnitI,
275 A57UnitS, A57UnitS]> {
279 def A57Write_3cyc_1I_3S : SchedWriteRes<[A57UnitI,
280 A57UnitS, A57UnitS, A57UnitS]> {
284 def A57Write_3cyc_1I_2S_1V : SchedWriteRes<[A57UnitI,
290 def A57Write_4cyc_4S : SchedWriteRes<[A57UnitS, A57UnitS,
291 A57UnitS, A57UnitS]> {
295 def A57Write_7cyc_1I_3L : SchedWriteRes<[A57UnitI,
296 A57UnitL, A57UnitL, A57UnitL]> {
300 def A57Write_5cyc_2I_2L : SchedWriteRes<[A57UnitI, A57UnitI,
301 A57UnitL, A57UnitL]> {
305 def A57Write_8cyc_1I_1L_2V : SchedWriteRes<[A57UnitI,
307 A57UnitV, A57UnitV]> {
311 def A57Write_8cyc_4L : SchedWriteRes<[A57UnitL, A57UnitL,
312 A57UnitL, A57UnitL]> {
316 def A57Write_9cyc_2L_2V : SchedWriteRes<[A57UnitL, A57UnitL,
317 A57UnitV, A57UnitV]> {
321 def A57Write_9cyc_1L_3V : SchedWriteRes<[A57UnitL,
322 A57UnitV, A57UnitV, A57UnitV]> {
326 def A57Write_12cyc_4V : SchedWriteRes<[A57UnitV, A57UnitV,
327 A57UnitV, A57UnitV]> {
333 //===----------------------------------------------------------------------===//
334 // Define Generic 5 micro-op types
336 def A57Write_3cyc_3S_2V : SchedWriteRes<[A57UnitS, A57UnitS, A57UnitS,
337 A57UnitV, A57UnitV]> {
341 def A57Write_8cyc_1I_4L : SchedWriteRes<[A57UnitI,
343 A57UnitL, A57UnitL]> {
347 def A57Write_4cyc_1I_4S : SchedWriteRes<[A57UnitI,
349 A57UnitS, A57UnitS]> {
353 def A57Write_9cyc_1I_2L_2V : SchedWriteRes<[A57UnitI,
355 A57UnitV, A57UnitV]> {
359 def A57Write_9cyc_1I_1L_3V : SchedWriteRes<[A57UnitI,
361 A57UnitV, A57UnitV, A57UnitV]> {
365 def A57Write_9cyc_2L_3V : SchedWriteRes<[A57UnitL, A57UnitL,
366 A57UnitV, A57UnitV, A57UnitV]> {
370 def A57Write_9cyc_5V : SchedWriteRes<[A57UnitV, A57UnitV, A57UnitV,
371 A57UnitV, A57UnitV]> {
377 //===----------------------------------------------------------------------===//
378 // Define Generic 6 micro-op types
380 def A57Write_3cyc_1I_3S_2V : SchedWriteRes<[A57UnitI,
381 A57UnitS, A57UnitS, A57UnitS,
382 A57UnitV, A57UnitV]> {
386 def A57Write_4cyc_2I_4S : SchedWriteRes<[A57UnitI, A57UnitI,
388 A57UnitS, A57UnitS]> {
392 def A57Write_4cyc_4S_2V : SchedWriteRes<[A57UnitS, A57UnitS,
394 A57UnitV, A57UnitV]> {
398 def A57Write_6cyc_6S : SchedWriteRes<[A57UnitS, A57UnitS, A57UnitS,
399 A57UnitS, A57UnitS, A57UnitS]> {
403 def A57Write_9cyc_1I_2L_3V : SchedWriteRes<[A57UnitI,
405 A57UnitV, A57UnitV, A57UnitV]> {
409 def A57Write_9cyc_1I_1L_4V : SchedWriteRes<[A57UnitI,
412 A57UnitV, A57UnitV]> {
416 def A57Write_9cyc_2L_4V : SchedWriteRes<[A57UnitL, A57UnitL,
418 A57UnitV, A57UnitV]> {
424 //===----------------------------------------------------------------------===//
425 // Define Generic 7 micro-op types
427 def A57Write_10cyc_3L_4V : SchedWriteRes<[A57UnitL, A57UnitL, A57UnitL,
429 A57UnitV, A57UnitV]> {
433 def A57Write_4cyc_1I_4S_2V : SchedWriteRes<[A57UnitI,
436 A57UnitV, A57UnitV]> {
440 def A57Write_6cyc_1I_6S : SchedWriteRes<[A57UnitI,
441 A57UnitS, A57UnitS, A57UnitS,
442 A57UnitS, A57UnitS, A57UnitS]> {
446 def A57Write_9cyc_1I_2L_4V : SchedWriteRes<[A57UnitI,
449 A57UnitV, A57UnitV]> {
453 def A57Write_12cyc_7V : SchedWriteRes<[A57UnitV, A57UnitV, A57UnitV,
455 A57UnitV, A57UnitV]> {
461 //===----------------------------------------------------------------------===//
462 // Define Generic 8 micro-op types
464 def A57Write_10cyc_1I_3L_4V : SchedWriteRes<[A57UnitI,
465 A57UnitL, A57UnitL, A57UnitL,
467 A57UnitV, A57UnitV]> {
471 def A57Write_11cyc_4L_4V : SchedWriteRes<[A57UnitL, A57UnitL,
474 A57UnitV, A57UnitV]> {
478 def A57Write_8cyc_8S : SchedWriteRes<[A57UnitS, A57UnitS,
481 A57UnitS, A57UnitS]> {
487 //===----------------------------------------------------------------------===//
488 // Define Generic 9 micro-op types
490 def A57Write_8cyc_1I_8S : SchedWriteRes<[A57UnitI,
494 A57UnitS, A57UnitS]> {
498 def A57Write_11cyc_1I_4L_4V : SchedWriteRes<[A57UnitI,
502 A57UnitV, A57UnitV]> {
506 def A57Write_15cyc_9V : SchedWriteRes<[A57UnitV, A57UnitV, A57UnitV,
507 A57UnitV, A57UnitV, A57UnitV,
508 A57UnitV, A57UnitV, A57UnitV]> {
514 //===----------------------------------------------------------------------===//
515 // Define Generic 10 micro-op types
517 def A57Write_6cyc_6S_4V : SchedWriteRes<[A57UnitS, A57UnitS, A57UnitS,
518 A57UnitS, A57UnitS, A57UnitS,
520 A57UnitV, A57UnitV]> {
522 let NumMicroOps = 10;
526 //===----------------------------------------------------------------------===//
527 // Define Generic 11 micro-op types
529 def A57Write_6cyc_1I_6S_4V : SchedWriteRes<[A57UnitI,
530 A57UnitS, A57UnitS, A57UnitS,
531 A57UnitS, A57UnitS, A57UnitS,
533 A57UnitV, A57UnitV]> {
535 let NumMicroOps = 11;
539 //===----------------------------------------------------------------------===//
540 // Define Generic 12 micro-op types
542 def A57Write_8cyc_8S_4V : SchedWriteRes<[A57UnitS, A57UnitS, A57UnitS, A57UnitS,
543 A57UnitS, A57UnitS, A57UnitS, A57UnitS,
545 A57UnitV, A57UnitV]> {
547 let NumMicroOps = 12;
550 //===----------------------------------------------------------------------===//
551 // Define Generic 13 micro-op types
553 def A57Write_8cyc_1I_8S_4V : SchedWriteRes<[A57UnitI,
554 A57UnitS, A57UnitS, A57UnitS,
555 A57UnitS, A57UnitS, A57UnitS,
558 A57UnitV, A57UnitV]> {
560 let NumMicroOps = 13;