[PATCH] D77313: [AST] Allow VectorTypes of 1-256 elements, and powers of two up to 2**31.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 2 08:39:05 PDT 2020


sammccall created this revision.
sammccall added reviewers: hokein, rjmccall, erichkeane.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This used to be 1-2043 elements, and recently regressed to a limit of 1023.
The new behavior is an almost-superset of GCC, which accepts powers of two up
to 2**62.

This change frees one further bit in VectorType in case Type grows again.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77313

Files:
  clang/include/clang/AST/Type.h
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/AST/Type.cpp
  clang/lib/Sema/SemaType.cpp
  clang/test/Sema/types.c
  clang/test/SemaCXX/vector.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77313.254532.patch
Type: text/x-patch
Size: 10422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200402/2e97591b/attachment-0001.bin>


More information about the cfe-commits mailing list