]> granicus.if.org Git - llvm/commit
[TableGen] Introduce !listsplat 'binary' operator
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 10 Apr 2019 18:26:36 +0000 (18:26 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 10 Apr 2019 18:26:36 +0000 (18:26 +0000)
commit4e72ab8b6604622bad0622e22902c6628a148c5e
tree8c6ad2c8ccf05073663d7faad7b51a6b76827976
parentd146b937891144666ffe9dfff26561b92b4585e2
[TableGen] Introduce !listsplat 'binary' operator

Summary:
```
``!listsplat(a, size)``
    A list value that contains the value ``a`` ``size`` times.
    Example: ``!listsplat(0, 2)`` results in ``[0, 0]``.
```

I plan to use this in X86ScheduleBdVer2.td for LoadRes handling.

This is a little bit controversial because unlike every other binary operator
the types aren't identical.

Reviewers: stoklund, javed.absar, nhaehnle, craig.topper

Reviewed By: javed.absar

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60367

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358117 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/listsplat.td [new file with mode: 0644]
utils/kate/llvm-tablegen.xml