[PATCH] [Tablegen] Attempt to add support for patterns containing nodes with multiple results.

Craig Topper craig.topper at gmail.com
Mon Mar 16 23:46:11 PDT 2015


Hi hfinkel,

This patch attempts to add support nodes with multiple results. This is necessary to enable AVX512 masked scatter/gather support.

This change exposed some odd behavior with a few instructions in the R600 backend. Previously it was using IMPLICIT_DEF input to represent what was really a second output and this magically worked. But now that we used NumDefs directly this needs to be converted to a proper output. But to do that we need to be able to cast a second output type. So I've introduced a ValueTypeList that can contain multiple ValueTypes.

http://reviews.llvm.org/D8373

Files:
  include/llvm/Target/TargetSelectionDAG.td
  lib/Target/R600/SIInstructions.td
  utils/TableGen/CodeGenDAGPatterns.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8373.22073.patch
Type: text/x-patch
Size: 6553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150317/4949b5e6/attachment.bin>


More information about the llvm-commits mailing list