[PATCH][AVX512] Handle valign masking intrinsic via C++ lowering

Adam Nemet anemet at apple.com
Thu Aug 7 23:32:10 PDT 2014


Hi,

I think that this will scale better in most cases than adding a Pat<> for each
mapping from the intrinsic DAG to the intruction (i.e. rri, rrik, rrikz).  We
can just lower to the SDNode and have the resulting DAG be matches by the DAG
patterns.

Alternatively (long term), we could keep the Pat<>s but generate them via the
new AVX512_masking multiclass.  The difficulty is that in order to formulate
that we would have to concatenate DAGs in tablegen.  Currently this is only
supported if the operators of the input DAGs are identical.

Please let me know if it looks good.

Adam

-------------- next part --------------
A non-text attachment was scrubbed...
Name: AVX512-Handle-valign-masking-intrinsic-via-C-lowerin.patch
Type: application/octet-stream
Size: 3595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140807/b8119a49/attachment.obj>


More information about the llvm-commits mailing list