[AArch64][SVE] Fix dup/dupq intrinsics for C++.
authorSander de Smalen <sander.desmalen@arm.com>
Tue, 13 Apr 2021 08:28:52 +0000 (09:28 +0100)
committerSander de Smalen <sander.desmalen@arm.com>
Tue, 13 Apr 2021 09:55:20 +0000 (10:55 +0100)
commitfa936b610fd019b73de82f61de83bae553251fdb
tree28800c25b693d49b894511ea157d786f9ab494b3
parent45f8946a759a780e6131256d6d206977b9c128ee
[AArch64][SVE] Fix dup/dupq intrinsics for C++.

This patch changes the builtin prototype to use 'b' (boolean) instead
of the default integer element type. That fixes the dup/dupq intrinsics
when compiling with C++.

This patch also fixes one of the defines for __ARM_FEATURE_SVE2_BITPERM.

Reviewed By: kmclaughlin

Differential Revision: https://reviews.llvm.org/D100294
clang/include/clang/Basic/arm_sve.td
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_dup.c
clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_dupq.c
clang/utils/TableGen/SveEmitter.cpp