[clang][SVE] Add support for arithmetic operators on SVE types
authorDavid Truby <david.truby@arm.com>
Mon, 28 Feb 2022 11:45:49 +0000 (11:45 +0000)
committerDavid Truby <david.truby@arm.com>
Fri, 11 Mar 2022 15:39:44 +0000 (15:39 +0000)
commit3aca0ffd5092e37590bbee7e0fcd2b1b5780024c
treebf34dd7732f6797774331120312331cb1208d05e
parentb7585a08d5dfcc5bb85f00632f7cf8f2924036d8
[clang][SVE] Add support for arithmetic operators on SVE types

This patch implements support for the +, -, *, / and % operators on sizeless SVE
types. Support for these operators on svbool_t is excluded.

Differential Revision: https://reviews.llvm.org/D120323
clang/include/clang/AST/Type.h
clang/include/clang/Sema/Sema.h
clang/lib/AST/Type.cpp
clang/lib/Sema/SemaExpr.cpp
clang/test/CodeGen/aarch64-sve-vector-ops.c [new file with mode: 0644]
clang/test/Sema/aarch64-sve-vector-ops.c [new file with mode: 0644]
clang/test/Sema/sizeless-1.c
clang/test/SemaCXX/sizeless-1.cpp