]> granicus.if.org Git - llvm/commit
[TableGen] Teach tablegen to allow SDNPCommutable nodes with more than 2 operands.
authorCraig Topper <craig.topper@intel.com>
Mon, 4 Sep 2017 03:44:33 +0000 (03:44 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 4 Sep 2017 03:44:33 +0000 (03:44 +0000)
commit911f6bba338239f181e726aa5493e68ffa2a88d0
tree2a8e4855adb5e8c675b86fee1250d47e18a8bf60
parent7f04a10c78d63aa3f1a9a51f6467ad664366997e
[TableGen] Teach tablegen to allow SDNPCommutable nodes with more than 2 operands.

Summary:
Tablegen already supports commutable instrinsics with more than 2 operands. There it just assumes the first two operands are commutable.

I plan to use this to improve the generation of FMA patterns in the X86 backend.

Reviewers: aymanmus, zvi, RKSimon, spatel, arsenm

Reviewed By: arsenm

Subscribers: arsenm, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312464 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/CodeGenDAGPatterns.cpp