[PATCH] D47431: TableGen: Allow foreach in multiclass to depend on template args
Nicolai Hähnle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 27 13:49:18 PDT 2018
nhaehnle created this revision.
nhaehnle added reviewers: tra, simon_tatham, craig.topper, MartinO, arsenm.
Herald added a subscriber: wdng.
nhaehnle added a dependency: D47430: TableGen: Streamline the semantics of NAME.
This also allows inner foreach loops to have a list that depends on
the iteration variable of an outer foreach loop. The test cases show
some very simple examples of how this can be used.
This was perhaps the last remaining major non-orthogonality in the
TableGen frontend.
Change-Id: I79b92d41a5c0e7c03cc8af4000c5e1bda5ef464d
Repository:
rL LLVM
https://reviews.llvm.org/D47431
Files:
include/llvm/TableGen/Record.h
lib/TableGen/Record.cpp
lib/TableGen/TGParser.cpp
lib/TableGen/TGParser.h
test/TableGen/NestedForeach.td
test/TableGen/foreach-multiclass.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47431.148767.patch
Type: text/x-patch
Size: 26307 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180527/9dd15174/attachment.bin>
More information about the llvm-commits
mailing list