[PATCH] D60367: [TableGen] Introduce !listsplat 'binary' operator
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 6 13:29:54 PDT 2019
lebedev.ri created this revision.
lebedev.ri added reviewers: stoklund, javed.absar, nhaehnle, craig.topper.
lebedev.ri added a project: LLVM.
``!listsplat(a, size)``
A list value that contains the value ``a`` ``size`` times.
Example: ``!listsplat(0, 2)`` results in ``[0, 0]``.
The `X86ScheduleBdVer2.td` change highlights the use-case.
This is a little bit controversial because unlike every other binary operator
the types aren't identical.
Repository:
rL LLVM
https://reviews.llvm.org/D60367
Files:
docs/TableGen/LangIntro.rst
docs/TableGen/LangRef.rst
include/llvm/TableGen/Record.h
lib/TableGen/Record.cpp
lib/TableGen/TGLexer.cpp
lib/TableGen/TGLexer.h
lib/TableGen/TGParser.cpp
lib/Target/X86/X86ScheduleBdVer2.td
test/TableGen/listsplat.td
utils/kate/llvm-tablegen.xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60367.194029.patch
Type: text/x-patch
Size: 12812 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190406/92c80dfd/attachment.bin>
More information about the llvm-commits
mailing list