From: Jay Foad Date: Mon, 5 Sep 2022 12:20:11 +0000 (+0100) Subject: [TableGen] Document sequence with stride X-Git-Tag: upstream/17.0.6~34210 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1427d55d7073ee309d7711260368cc59eb538a34;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/llvm/include/llvm/TableGen/SetTheory.h b/llvm/include/llvm/TableGen/SetTheory.h index 3515642..4cff688 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 ]. // //===----------------------------------------------------------------------===//