[AST] clang::VectorType supports any size (that fits in unsigned)
authorSam McCall <sam.mccall@gmail.com>
Thu, 2 Apr 2020 20:53:01 +0000 (22:53 +0200)
committerSam McCall <sam.mccall@gmail.com>
Fri, 3 Apr 2020 15:30:31 +0000 (17:30 +0200)
commit88fbadd0f5d50ea1d310fb63da6da15b82a9be05
treeb65b920b13393d713593002cc269ee9ff8e1a5f6
parent6897111231e7be8886fedc7d6ab02436a901323d
[AST] clang::VectorType supports any size (that fits in unsigned)

Summary:
This matches llvm::VectorType.
It moves the size from the type bitfield into VectorType, increasing size by 8
bytes (including padding of 4). This is OK as we don't expect to create terribly
many of these types.

c.f. D77313 which enables large power-of-two sizes without growing VectorType.

Reviewers: efriedma, hokein

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D77335
clang/include/clang/AST/Type.h
clang/lib/Sema/SemaType.cpp
clang/test/Sema/types.c
clang/test/SemaCXX/vector.cpp