[clang][SVE] Activate macro `__ARM_FEATURE_SVE_VECTOR_OPERATORS`.
authorFrancesco Petrogalli <francesco.petrogalli@arm.com>
Wed, 25 Nov 2020 09:37:00 +0000 (09:37 +0000)
committerFrancesco Petrogalli <francesco.petrogalli@arm.com>
Wed, 25 Nov 2020 10:16:43 +0000 (10:16 +0000)
commite592dde6889b5119eb2794a30aca57c3760cab67
treee40d821bb04289092837108e9a04ed36dfb66638
parentd2b71ea03d9c250453a90ad01ea1a4f8b0566b5d
[clang][SVE] Activate macro `__ARM_FEATURE_SVE_VECTOR_OPERATORS`.

The macro is emitted when wargeting SVE code generation with the additional command line option `-msve-vector-bits=<N>`.

The behavior implied by the macro is described in sections "3.7.3.3. Behavior specific to SVE vectors" of the SVE ACLE (Version 00bet6) that can be found at https://developer.arm.com/documentation/100987/latest

Reviewed By: rengolin, rsandifo-arm

Differential Revision: https://reviews.llvm.org/D90956
clang/lib/Basic/Targets/AArch64.cpp
clang/test/CodeGen/aarch64-sve-acle-__ARM_FEATURE_SVE_VECTOR_OPERATORS.c [new file with mode: 0644]
clang/test/CodeGen/aarch64-sve-acle-__ARM_FEATURE_SVE_VECTOR_OPERATORS.cpp [new file with mode: 0644]
clang/test/Preprocessor/aarch64-target-features.c