[PATCH] D91262: [AArch64][SVE] Allow C-style casts between fixed-size and scalable vectors

Joe Ellis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 11 07:12:34 PST 2020


joechrisellis created this revision.
joechrisellis added reviewers: fpetrogalli, peterwaller-arm, DavidTruby.
Herald added subscribers: cfe-commits, psnobl, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: clang.
joechrisellis requested review of this revision.

This patch allows C-style casting between fixed-size and scalable
vectors. This kind of cast was previously blocked by the compiler, but
it should be allowed.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91262

Files:
  clang/lib/Sema/SemaCast.cpp
  clang/test/Sema/aarch64-sve-explicit-casts-fixed-size.cpp
  clang/test/Sema/aarch64-sve-explicit-casts.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91262.304512.patch
Type: text/x-patch
Size: 4053 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201111/b3a7a216/attachment.bin>


More information about the cfe-commits mailing list