[all-commits] [llvm/llvm-project] 150ba9: Reformat
NAKAMURA Takumi via All-commits
all-commits at lists.llvm.org
Tue Apr 25 06:38:51 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 150ba961395ab18e7c2ed887cbc9871b9b9c8353
https://github.com/llvm/llvm-project/commit/150ba961395ab18e7c2ed887cbc9871b9b9c8353
Author: NAKAMURA Takumi <geek4civic at gmail.com>
Date: 2023-04-25 (Tue, 25 Apr 2023)
Changed paths:
M llvm/lib/TableGen/TGLexer.h
Log Message:
-----------
Reformat
Commit: ab2187d786a4cd7655c1ebe7dcb6564e657f7d65
https://github.com/llvm/llvm-project/commit/ab2187d786a4cd7655c1ebe7dcb6564e657f7d65
Author: NAKAMURA Takumi <geek4civic at gmail.com>
Date: 2023-04-25 (Tue, 25 Apr 2023)
Changed paths:
M llvm/docs/TableGen/ProgRef.rst
M llvm/include/llvm/TableGen/Record.h
M llvm/lib/TableGen/Record.cpp
M llvm/lib/TableGen/TGLexer.cpp
M llvm/lib/TableGen/TGLexer.h
M llvm/lib/TableGen/TGParser.cpp
A llvm/test/TableGen/range-op-fail.td
A llvm/test/TableGen/range-op.td
Log Message:
-----------
TableGen: Introduce `!range` operator for half-opened interval
`!range(a, b)` generates a list `[a,b)`. `a` is optional and `0` by default.
- `!range(-1, 4)` generates `[-1, 0, 1, 2, 3]`
- `!range(4)` generates `[0, 1, 2, 3]`
- `!range(2, 2)` generates `[]<list<int>>`
`!range(list)` is equivalent to `!range(0, !size(list))`.
Differential Revision: https://reviews.llvm.org/D145871
Compare: https://github.com/llvm/llvm-project/compare/72776850ed81...ab2187d786a4
More information about the All-commits
mailing list