aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorCullen Rhodes <cullen.rhodes@arm.com>2020-06-25 16:01:00 +0000
committerCullen Rhodes <cullen.rhodes@arm.com>2020-06-26 10:25:42 +0000
commitd45cf9105b5a88ed03382ffbbfcd54b461f1bb23 (patch)
treee40d8e49919b9bb4d17c1e9a4524c15896b18f37 /clang/lib/Basic/Module.cpp
parent7e1f79c3de50ad6958d4092ef5def04942629193 (diff)
downloadllvm-d45cf9105b5a88ed03382ffbbfcd54b461f1bb23.zip
llvm-d45cf9105b5a88ed03382ffbbfcd54b461f1bb23.tar.gz
llvm-d45cf9105b5a88ed03382ffbbfcd54b461f1bb23.tar.bz2
[AArch64][SVE2] Guard while intrinsics on scalar bfloat feature macro
Summary: `svwhilerw_bf16` and `svwhilewr_bf16` intrinsics use the scalar `bfloat16_t` type which is predicated on `__ARM_FEATURE_BF16_SCALAR_ARITHMETIC`. This patch changes the feature guard from `__ARM_FEATURE_SVE_BF16` to the scalar bfloat feature macro. The verify tests for `+bf16` are also removed in this patch. The purpose of these checks was to match the SVE2 ACLE tests that look for an implicit declaration warning if the feature isn't set. They worked when the intrinsics were guarded on `__ARM_FEATURE_SVE_BF16` as the `bfloat16_t` was guarded on a different macro, but with both the type and intrinsic guarded on the same macro an earlier error is triggered in the ACLE regarding the type and we don't get a warning as we do for SVE2. Reviewers: sdesmalen, fpetrogalli, kmclaughlin, rengolin, efriedma Reviewed By: sdesmalen, fpetrogalli Differential Revision: https://reviews.llvm.org/D82578
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions