[PATCH] D145872: TableGen: Let expressions available to list subscriptions and list slices
NAKAMURA Takumi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 12 07:46:32 PDT 2023
chapuni created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
chapuni requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This enables indexing in `!foreach` and permutation with `list[permlist]`.
Enhancements in syntax:
- `list<int>` is applicable as a slice element.
- `list[int,]` is evaluated as not `ElemType` but `list<ElemType>` with a single element.
FIXME: I didn't apply new semantics to BitSlice.
TableGen: Prune convertInitListSlice and VarListElementInit
They were dedicated to constant version of list slice.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145872
Files:
llvm/docs/TableGen/ProgRef.rst
llvm/include/llvm/TableGen/Record.h
llvm/lib/TableGen/Record.cpp
llvm/lib/TableGen/TGParser.cpp
llvm/lib/TableGen/TGParser.h
llvm/test/TableGen/ListSlices-fail.td
llvm/test/TableGen/ListSlices.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145872.504436.patch
Type: text/x-patch
Size: 19800 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230312/4d01f92d/attachment.bin>
More information about the llvm-commits
mailing list