From 1427d55d7073ee309d7711260368cc59eb538a34 Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Mon, 5 Sep 2022 13:20:11 +0100 Subject: [PATCH] [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 --- llvm/include/llvm/TableGen/SetTheory.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/TableGen/SetTheory.h b/llvm/include/llvm/TableGen/SetTheory.h index 35156424b0d3..4cff688164b0 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 ]. // //===----------------------------------------------------------------------===//