Skip to content

Commit 184fbfd

Browse files
[RISCV][CodeGen] Chapter of vector instruction type corresponds with chapters in RISCV vector specification. NFC
The [vector spec](https://github.com/riscv/riscv-v-spec/blob/master/v-spec.adoc) is organized in chapters based on instruction type. The comments in the tablegen marked the incorrect chapters. This change updates the comments with the correct chapter numbers. Differential Revision: https://reviews.llvm.org/D138311
1 parent 9cae928 commit 184fbfd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

llvm/lib/Target/RISCV/RISCVScheduleV.td

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ defm "" : LMULWriteRes<"WriteVIMovV", []>;
613613
defm "" : LMULWriteRes<"WriteVIMovX", []>;
614614
defm "" : LMULWriteRes<"WriteVIMovI", []>;
615615

616-
// 13. Vector Fixed-Point Arithmetic Instructions
616+
// 12. Vector Fixed-Point Arithmetic Instructions
617617
def : WriteRes<WriteVSALUV, []>;
618618
def : WriteRes<WriteVSALUX, []>;
619619
def : WriteRes<WriteVSALUI, []>;
@@ -628,7 +628,7 @@ def : WriteRes<WriteVNClipV, []>;
628628
def : WriteRes<WriteVNClipX, []>;
629629
def : WriteRes<WriteVNClipI, []>;
630630

631-
// 14. Vector Floating-Point Instructions
631+
// 13. Vector Floating-Point Instructions
632632
def : WriteRes<WriteVFALUV, []>;
633633
def : WriteRes<WriteVFALUF, []>;
634634
def : WriteRes<WriteVFWALUV, []>;
@@ -661,23 +661,23 @@ def : WriteRes<WriteVFNCvtIToFV, []>;
661661
def : WriteRes<WriteVFNCvtFToIV, []>;
662662
def : WriteRes<WriteVFNCvtFToFV, []>;
663663

664-
// 15. Vector Reduction Operations
664+
// 14. Vector Reduction Operations
665665
def : WriteRes<WriteVIRedV, []>;
666666
def : WriteRes<WriteVIWRedV, []>;
667667
def : WriteRes<WriteVFRedV, []>;
668668
def : WriteRes<WriteVFRedOV, []>;
669669
def : WriteRes<WriteVFWRedV, []>;
670670
def : WriteRes<WriteVFWRedOV, []>;
671671

672-
// 16. Vector Mask Instructions
672+
// 15. Vector Mask Instructions
673673
def : WriteRes<WriteVMALUV, []>;
674674
def : WriteRes<WriteVMPopV, []>;
675675
def : WriteRes<WriteVMFFSV, []>;
676676
def : WriteRes<WriteVMSFSV, []>;
677677
def : WriteRes<WriteVMIotV, []>;
678678
def : WriteRes<WriteVMIdxV, []>;
679679

680-
// 17. Vector Permutation Instructions
680+
// 16. Vector Permutation Instructions
681681
def : WriteRes<WriteVIMovVX, []>;
682682
def : WriteRes<WriteVIMovXV, []>;
683683
def : WriteRes<WriteVFMovVF, []>;
@@ -764,7 +764,7 @@ defm "" : LMULReadAdvance<"ReadVIMergeX", 0>;
764764
defm "" : LMULReadAdvance<"ReadVIMovV", 0>;
765765
defm "" : LMULReadAdvance<"ReadVIMovX", 0>;
766766

767-
// 13. Vector Fixed-Point Arithmetic Instructions
767+
// 12. Vector Fixed-Point Arithmetic Instructions
768768
def : ReadAdvance<ReadVSALUV, 0>;
769769
def : ReadAdvance<ReadVSALUX, 0>;
770770
def : ReadAdvance<ReadVAALUV, 0>;
@@ -776,7 +776,7 @@ def : ReadAdvance<ReadVSShiftX, 0>;
776776
def : ReadAdvance<ReadVNClipV, 0>;
777777
def : ReadAdvance<ReadVNClipX, 0>;
778778

779-
// 14. Vector Floating-Point Instructions
779+
// 13. Vector Floating-Point Instructions
780780
def : ReadAdvance<ReadVFALUV, 0>;
781781
def : ReadAdvance<ReadVFALUF, 0>;
782782
def : ReadAdvance<ReadVFWALUV, 0>;
@@ -810,7 +810,7 @@ def : ReadAdvance<ReadVFNCvtIToFV, 0>;
810810
def : ReadAdvance<ReadVFNCvtFToIV, 0>;
811811
def : ReadAdvance<ReadVFNCvtFToFV, 0>;
812812

813-
// 15. Vector Reduction Operations
813+
// 14. Vector Reduction Operations
814814
def : ReadAdvance<ReadVIRedV, 0>;
815815
def : ReadAdvance<ReadVIRedV0, 0>;
816816
def : ReadAdvance<ReadVIWRedV, 0>;
@@ -824,14 +824,14 @@ def : ReadAdvance<ReadVFWRedV0, 0>;
824824
def : ReadAdvance<ReadVFWRedOV, 0>;
825825
def : ReadAdvance<ReadVFWRedOV0, 0>;
826826

827-
// 16. Vector Mask Instructions
827+
// 15. Vector Mask Instructions
828828
def : ReadAdvance<ReadVMALUV, 0>;
829829
def : ReadAdvance<ReadVMPopV, 0>;
830830
def : ReadAdvance<ReadVMFFSV, 0>;
831831
def : ReadAdvance<ReadVMSFSV, 0>;
832832
def : ReadAdvance<ReadVMIotV, 0>;
833833

834-
// 17. Vector Permutation Instructions
834+
// 16. Vector Permutation Instructions
835835
def : ReadAdvance<ReadVIMovVX, 0>;
836836
def : ReadAdvance<ReadVIMovXV, 0>;
837837
def : ReadAdvance<ReadVIMovXX, 0>;

0 commit comments

Comments
 (0)