[llvm] 1427d55 - [TableGen] Document sequence with stride

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 7 02:11:29 PDT 2022


Author: Jay Foad
Date: 2022-09-07T09:58:22+01:00
New Revision: 1427d55d7073ee309d7711260368cc59eb538a34

URL: https://github.com/llvm/llvm-project/commit/1427d55d7073ee309d7711260368cc59eb538a34
DIFF: https://github.com/llvm/llvm-project/commit/1427d55d7073ee309d7711260368cc59eb538a34.diff

LOG: [TableGen] Document sequence with stride

Document (in comments) the optional fourth "stride" argument to the
sequence operator, which was added in svn r157416.

Differential Revision: https://reviews.llvm.org/D133297

Added: 
    

Modified: 
    llvm/include/llvm/TableGen/SetTheory.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/TableGen/SetTheory.h b/llvm/include/llvm/TableGen/SetTheory.h
index 35156424b0d30..4cff688164b0c 100644
--- a/llvm/include/llvm/TableGen/SetTheory.h
+++ b/llvm/include/llvm/TableGen/SetTheory.h
@@ -38,8 +38,9 @@
 //   the first one. For instance, (decimate S, 2) returns the even elements of
 //   S.
 //
-// - (sequence "Format", From, To) Generate a sequence of defs with printf.
-//   For instance, (sequence "R%u", 0, 3) -> [ R0, R1, R2, R3 ]
+// - (sequence "Format", From, To, [Stride]) Generate a sequence of defs with
+//   printf. For instance, (sequence "R%u", 0, 3) -> [ R0, R1, R2, R3 ] and
+//   (sequence "R%u", 20, 30, 5) -> [ R20, R25, R30 ].
 //
 //===----------------------------------------------------------------------===//
 


        


More information about the llvm-commits mailing list