[AArch64][SME2] Add builtins to cast svbool from/to svcount. (#74720)
commit49b27b150b97c190dedf8b45bf991c4b811ed953
authorDinar Temirbulatov <Dinar.Temirbulatov@arm.com>
Fri, 8 Dec 2023 16:38:29 +0000 (8 16:38 +0000)
committerGitHub <noreply@github.com>
Fri, 8 Dec 2023 16:38:29 +0000 (8 16:38 +0000)
treed4eae0b559d19a6646114d969bc80a201fbc5fef
parentcb6c0934339c8fb8a00326fbacc46dfdf082e9bb
[AArch64][SME2] Add builtins to cast svbool from/to svcount. (#74720)

Add builtin: 'svreinterpret_b' to cast from svcount_t to svbool_t.
Add builtin: 'svreinterpret_c'  to cast from svbool_t  to svcount_t.

Patch by: Hassnaa Hamdi <hassnaa.hamdi@arm.com>
clang/include/clang/Basic/arm_sve.td
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGen/aarch64-sme2-intrinsics/acle_sme2_reinterpret_svcount_svbool.c [new file with mode: 0644]