[tablegen] Add !listconcat operator with the similar semantics as !strconcat
authorDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 7 May 2014 10:13:19 +0000 (10:13 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 7 May 2014 10:13:19 +0000 (10:13 +0000)
commitd80222a48b11d5ec35a2e3502d014bdbd9f137c0
treeac9c2b281c9f3e3cfc599fc0abf75c080af9293b
parent0c9ea21554e976b23e494ca8bda48bd1691ac8a4
[tablegen] Add !listconcat operator with the similar semantics as !strconcat

Summary:
It concatenates two or more lists. In addition to the !strconcat semantics
the lists must have the same element type.

My overall aim is to make it easy to append to Instruction.Predicates
rather than override it. This can be done by concatenating lists passed as
arguments, or by concatenating lists passed in additional fields.

Reviewers: dsanders

Reviewed By: dsanders

Subscribers: hfinkel, llvm-commits

Differential Revision: http://reviews.llvm.org/D3506

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208183 91177308-0d34-0410-b5e6-96231b3b80d8
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
test/TableGen/listconcat.td [new file with mode: 0644]