[PATCH] D77335: [AST] clang::VectorType supports any size (that fits in unsigned)

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 2 14:06:40 PDT 2020


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

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 <https://reviews.llvm.org/D77313> which enables large power-of-two sizes without growing VectorType.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77335

Files:
  clang/include/clang/AST/Type.h
  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: D77335.254615.patch
Type: text/x-patch
Size: 8183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200402/7d224c47/attachment.bin>


More information about the cfe-commits mailing list