[PATCH] D124091: [clang][AArch64][SVE] Implement conditional operator for SVE vectors

David Truby via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 20 07:00:28 PDT 2022


DavidTruby created this revision.
Herald added subscribers: ctetreau, psnobl, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: All.
DavidTruby requested review of this revision.
Herald added subscribers: cfe-commits, alextsao1999.
Herald added a project: clang.

This patch adds support for the conditional (ternary) operator on SVE
scalable vector types in C++, matching the behaviour for NEON vector
types. Like the conditional operator for NEON types, this is disabled in
C mode.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124091

Files:
  clang/include/clang/Sema/Sema.h
  clang/lib/CodeGen/CGExprScalar.cpp
  clang/lib/Sema/SemaExprCXX.cpp
  clang/test/CodeGenCXX/aarch64-sve-vector-conditional-op.cpp
  clang/test/SemaCXX/aarch64-sve-vector-conditional-op.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124091.423900.patch
Type: text/x-patch
Size: 17263 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220420/91053a5f/attachment-0001.bin>


More information about the cfe-commits mailing list