Skip to content

Commit ee50e3d

Browse files
committed
DS -> SX in MxLists aliases
S and UX/OX are the common parts of SchedWrite names for strided and segmented operations, hence "SX" suffix, followed by EEW.
1 parent 7d85a03 commit ee50e3d

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

llvm/lib/Target/RISCV/RISCVSchedSiFive7.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ multiclass SiFive7WriteResBase<int VLEN,
562562
// resource, we do not need to use LMULSEWXXX constructors. However, we do
563563
// use the SEW from the name to determine the number of Cycles.
564564

565-
foreach mx = SchedMxListDS8 in {
565+
foreach mx = SchedMxListSX8 in {
566566
defvar VLDSX0Cycles = SiFive7GetCyclesDefault<mx>.c;
567567
defvar Cycles = SiFive7GetCyclesOnePerElement<mx, 8, VLEN>.c;
568568
defvar IsWorstCase = SiFive7IsWorstCaseMX<mx, SchedMxList>.c;
@@ -583,7 +583,7 @@ multiclass SiFive7WriteResBase<int VLEN,
583583
}
584584
}
585585

586-
foreach mx = SchedMxListDS16 in {
586+
foreach mx = SchedMxListSX16 in {
587587
defvar VLDSX0Cycles = SiFive7GetCyclesDefault<mx>.c;
588588
defvar Cycles = SiFive7GetCyclesOnePerElement<mx, 16, VLEN>.c;
589589
defvar IsWorstCase = SiFive7IsWorstCaseMX<mx, SchedMxList>.c;
@@ -603,7 +603,7 @@ multiclass SiFive7WriteResBase<int VLEN,
603603
defm : LMULWriteResMX<"WriteVSTOX16", [VCQ, VS], mx, IsWorstCase>;
604604
}
605605
}
606-
foreach mx = SchedMxListDS32 in {
606+
foreach mx = SchedMxListSX32 in {
607607
defvar VLDSX0Cycles = SiFive7GetCyclesDefault<mx>.c;
608608
defvar Cycles = SiFive7GetCyclesOnePerElement<mx, 32, VLEN>.c;
609609
defvar IsWorstCase = SiFive7IsWorstCaseMX<mx, SchedMxList>.c;
@@ -623,7 +623,7 @@ multiclass SiFive7WriteResBase<int VLEN,
623623
defm : LMULWriteResMX<"WriteVSTOX32", [VCQ, VS], mx, IsWorstCase>;
624624
}
625625
}
626-
foreach mx = SchedMxListDS64 in {
626+
foreach mx = SchedMxListSX64 in {
627627
defvar VLDSX0Cycles = SiFive7GetCyclesDefault<mx>.c;
628628
defvar Cycles = SiFive7GetCyclesOnePerElement<mx, 64, VLEN>.c;
629629
defvar IsWorstCase = SiFive7IsWorstCaseMX<mx, SchedMxList>.c;

llvm/lib/Target/RISCV/RISCVSchedTTAscalonD8.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ foreach mx = SchedMxList in {
437437
defm "" : LMULWriteResMX<"WriteVSTM", [AscalonLS], mx, IsWorstCase>;
438438
}
439439

440-
foreach mx = SchedMxListDS8 in {
440+
foreach mx = SchedMxListSX8 in {
441441
defvar Cycles = AscalonGetCyclesLMUL<mx, 2>.c;
442442
defvar IsWorstCase = AscalonIsWorstCaseMX<mx, SchedMxList>.c;
443443
let Latency = Cycles in {
@@ -449,7 +449,7 @@ foreach mx = SchedMxListDS8 in {
449449
defm "" : LMULWriteResMX<"WriteVSTOX8", [AscalonLS], mx, IsWorstCase>;
450450
}
451451
}
452-
foreach mx = SchedMxListDS16 in {
452+
foreach mx = SchedMxListSX16 in {
453453
defvar Cycles = AscalonGetCyclesLMUL<mx, 2>.c;
454454
defvar IsWorstCase = AscalonIsWorstCaseMX<mx, SchedMxList>.c;
455455
let Latency = Cycles in {
@@ -461,7 +461,7 @@ foreach mx = SchedMxListDS16 in {
461461
defm "" : LMULWriteResMX<"WriteVSTOX16", [AscalonLS], mx, IsWorstCase>;
462462
}
463463
}
464-
foreach mx = SchedMxListDS32 in {
464+
foreach mx = SchedMxListSX32 in {
465465
defvar Cycles = AscalonGetCyclesLMUL<mx, 2>.c;
466466
defvar IsWorstCase = AscalonIsWorstCaseMX<mx, SchedMxList>.c;
467467
let Latency = Cycles in {
@@ -473,7 +473,7 @@ foreach mx = SchedMxListDS32 in {
473473
defm "" : LMULWriteResMX<"WriteVSTOX32", [AscalonLS], mx, IsWorstCase>;
474474
}
475475
}
476-
foreach mx = SchedMxListDS64 in {
476+
foreach mx = SchedMxListSX64 in {
477477
defvar Cycles = AscalonGetCyclesLMUL<mx, 2>.c;
478478
defvar IsWorstCase = AscalonIsWorstCaseMX<mx, SchedMxList>.c;
479479
let Latency = Cycles in {

llvm/lib/Target/RISCV/RISCVScheduleV.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ defvar SchedMxListF = !listremove(SchedMxList, ["MF8"]);
2020
// Used for widening floating-point Reduction as it doesn't contain MF8.
2121
defvar SchedMxListFWRed = SchedMxListF;
2222
// Used for indexed and strided loads of 8 bit lanes, same as full MX list
23-
defvar SchedMxListDS8 = SchedMxList;
23+
defvar SchedMxListSX8 = SchedMxList;
2424
// Used for indexed and strided loads of 16 bit lanes
25-
defvar SchedMxListDS16 = SchedMxListF;
25+
defvar SchedMxListSX16 = SchedMxListF;
2626
// Used for indexed and strided loads of 32 bit lanes
27-
defvar SchedMxListDS32 = !listremove(SchedMxListDS16, ["MF4"]);
27+
defvar SchedMxListSX32 = !listremove(SchedMxListSX16, ["MF4"]);
2828
// Used for indexed and strided loads of 64 bit lanes
29-
defvar SchedMxListDS64 = !listremove(SchedMxListDS32, ["MF2"]);
29+
defvar SchedMxListSX64 = !listremove(SchedMxListSX32, ["MF2"]);
3030

3131
class SchedSEWSet<string mx, bit isF = 0, bit isWidening = 0> {
3232
assert !or(!not(isF), !ne(mx, "MF8")), "LMUL shouldn't be MF8 for floating-point";

0 commit comments

Comments
 (0)