[PATCH] D25866: [Sema] Support implicit scalar to vector conversions

Simon Dardis via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 31 05:00:32 PDT 2016


sdardis updated the summary for this revision.
sdardis updated this revision to Diff 76385.
sdardis added a comment.

Split out a variant of tryVectorConvertAndSplat called tryGCCVectorConvertAndSplat. This variant checks the types more strictly than tryVectorConvertAndSplat and handles implicit conversion of constants which can be safely demoted to a smaller type.
Added more testing to vector-gcc-compat.c


https://reviews.llvm.org/D25866

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/Sema/SemaExpr.cpp
  test/Sema/vector-cast.c
  test/Sema/vector-gcc-compat.c
  test/Sema/zvector.c
  test/SemaCXX/vector-no-lax.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25866.76385.patch
Type: text/x-patch
Size: 32429 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161031/e9d68057/attachment-0001.bin>


More information about the cfe-commits mailing list