OSDN Git Service

[VP] ISD helper functions [VE] isel for vp_add, vp_and
authorSimon Moll <simon.moll@emea.nec.com>
Fri, 8 Jan 2021 12:53:18 +0000 (13:53 +0100)
committerSimon Moll <simon.moll@emea.nec.com>
Fri, 8 Jan 2021 13:29:45 +0000 (14:29 +0100)
commit611d3c63f32d0d8a7f8e56d425849c610adbd806
treec45828465295fc1a16fe1ba5ec1a8e100b326f08
parentb0dc54e08a9b5bee8ba1e874e9c12f4c4859f4a3
[VP] ISD helper functions [VE] isel for vp_add, vp_and

This implements vp_add, vp_and for the VE target by lowering them to the
VVP_* layer. We also add helper functions for VP SDNodes (isVPSDNode,
getVPMaskIdx, getVPExplicitVectorLengthIdx).

Reviewed By: kaz7

Differential Revision: https://reviews.llvm.org/D93766
llvm/include/llvm/CodeGen/ISDOpcodes.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/Target/VE/VEISelLowering.cpp
llvm/lib/Target/VE/VVPNodes.def
llvm/test/CodeGen/VE/Vector/vp_add.ll
llvm/test/CodeGen/VE/Vector/vp_and.ll