[SelectionDAG] Update getNode asserts for EXTRACT/INSERT_SUBVECTOR.
authorPaul Walker <paul.walker@arm.com>
Thu, 28 May 2020 10:21:27 +0000 (10:21 +0000)
committerPaul Walker <paul.walker@arm.com>
Fri, 29 May 2020 11:02:18 +0000 (11:02 +0000)
commit92f3d29af0c0f2c98ba0dfacac00bbb6eb1f741d
tree795e750dc800105f6d966ef6d8ff90e32252c587
parentdac21fd29cd2ae2b979a276747ad5ad82fca09bf
[SelectionDAG] Update getNode asserts for EXTRACT/INSERT_SUBVECTOR.

Summary:
The description of EXTACT_SUBVECTOR and INSERT_SUBVECTOR has been
changed to accommodate scalable vectors (see ISDOpcodes.h). This
patch updates the asserts used to verify these requirements when
using SelectionDAG's getNode interface.

This patch introduces the MVT function getVectorMinNumElements
that can be used against fixed-length and scalable vectors when
only the known minimum vector length is required.

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80709
llvm/include/llvm/CodeGen/ValueTypes.h
llvm/include/llvm/Support/MachineValueType.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp