[clang][AArc64][SVE] Implement vector-scalar operators
authorDavid Truby <david.truby@arm.com>
Wed, 16 Mar 2022 14:23:57 +0000 (14:23 +0000)
committerDavid Truby <david.truby@arm.com>
Wed, 23 Mar 2022 14:20:48 +0000 (14:20 +0000)
commit683fc6203cfa3f604df5f59cef714568cba2daac
tree8f2383d86b81c0b4ad129b15b1d3ddba9aff6fe2
parentab26841704e89307ec8b1c912b0abd334b9d0aad
[clang][AArc64][SVE] Implement vector-scalar operators

This patch extends the support for C/C++ operators for SVE
types to allow one of the arguments to be a scalar, in which
case a vector splat is performed.

Differential Revision: https://reviews.llvm.org/D121829
clang/include/clang/Sema/Sema.h
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/Sema/SemaExpr.cpp
clang/test/CodeGen/aarch64-sve-vector-arith-ops.c
clang/test/Sema/aarch64-sve-vector-arith-ops.c