[PATCH] D133297: [TableGen] Document sequence with stride

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 5 05:22:49 PDT 2022


foad created this revision.
Herald added a project: All.
foad requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133297

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


Index: llvm/include/llvm/TableGen/SetTheory.h
===================================================================
--- llvm/include/llvm/TableGen/SetTheory.h
+++ 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 ].
 //
 //===----------------------------------------------------------------------===//
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133297.457954.patch
Type: text/x-patch
Size: 753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220905/758e4a39/attachment.bin>


More information about the llvm-commits mailing list