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.
Paths
| Differential D37430
[TableGen] Teach tablegen to allow SDNPCommutable nodes with more than 2 operands. ClosedPublic Authored by craig.topper on Sep 3 2017, 3:37 PM.
Details 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.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Sep 3 2017, 3:57 PM Closed by commit rL312464: [TableGen] Teach tablegen to allow SDNPCommutable nodes with more than 2… (authored by ctopper). · Explain WhySep 3 2017, 8:46 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 113713 utils/TableGen/CodeGenDAGPatterns.cpp
|