diff options
author | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-05-07 10:13:19 +0000 |
---|---|---|
committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-05-07 10:13:19 +0000 |
commit | d80222a48b11d5ec35a2e3502d014bdbd9f137c0 (patch) | |
tree | ac9c2b281c9f3e3cfc599fc0abf75c080af9293b /docs | |
parent | 0c9ea21554e976b23e494ca8bda48bd1691ac8a4 (diff) | |
download | llvm-d80222a48b11d5ec35a2e3502d014bdbd9f137c0.tar.gz llvm-d80222a48b11d5ec35a2e3502d014bdbd9f137c0.tar.bz2 llvm-d80222a48b11d5ec35a2e3502d014bdbd9f137c0.tar.xz |
[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
Diffstat (limited to 'docs')
-rw-r--r-- | docs/TableGen/LangIntro.rst | 6 | ||||
-rw-r--r-- | docs/TableGen/LangRef.rst | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/docs/TableGen/LangIntro.rst b/docs/TableGen/LangIntro.rst index 5b6094fa91..3e74dffb00 100644 --- a/docs/TableGen/LangIntro.rst +++ b/docs/TableGen/LangIntro.rst @@ -160,6 +160,12 @@ supported include: remaining elements in the list may be arbitrary other values, including nested ```dag``' values. +``!listconcat(a, b, ...)`` + A list value that is the result of concatenating the 'a' and 'b' lists. + The lists must have the same element type. + More than two arguments are accepted with the result being the concatenation + of all the lists given. + ``!strconcat(a, b, ...)`` A string value that is the result of concatenating the 'a' and 'b' strings. More than two arguments are accepted with the result being the concatenation diff --git a/docs/TableGen/LangRef.rst b/docs/TableGen/LangRef.rst index 781f789faa..9b074be38d 100644 --- a/docs/TableGen/LangRef.rst +++ b/docs/TableGen/LangRef.rst @@ -93,7 +93,7 @@ wide variety of meanings: BangOperator: one of :!eq !if !head !tail !con :!add !shl !sra !srl - :!cast !empty !subst !foreach !strconcat + :!cast !empty !subst !foreach !listconcat !strconcat Syntax ====== |