[MVT][SVE] Scalable vector MVTs (1/3)
authorAmara Emerson <amara.emerson@arm.com>
Thu, 20 Apr 2017 13:08:17 +0000 (13:08 +0000)
committerAmara Emerson <amara.emerson@arm.com>
Thu, 20 Apr 2017 13:08:17 +0000 (13:08 +0000)
commit505478205289c10eb63bf1f815e3bcf4bb64f13e
treea294a3508c1d824d10bf1025f44655f71bf7947c
parent69883aa0431c1044a00f19eb9d8516124126fa7e
[MVT][SVE] Scalable vector MVTs (1/3)

This patch adds a few helper functions to obtain new vector
value types based on existing ones without needing to care
about whether they are scalable or not.

I've confined their use to a few common locations right now,
and targets that don't have scalable vectors should never
need to care about these.

Patch by Graham Hunter.

Differential Revision: https://reviews.llvm.org/D32017

llvm-svn: 300838
llvm/include/llvm/CodeGen/ValueTypes.h
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp