[PATCH] D130973: [AArch64] Always allow the __bf16 type

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 2 02:14:57 PDT 2022


dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, sdesmalen, simon_tatham, stuij.
Herald added subscribers: ctetreau, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.

We would like to make the ACLE NEON and SVE intrinsics more useable by gating them on the target, not by ifdef preprocessor macros. See #56480. In order to do this the types they use need to be available. This patches makes __bf16 always available under AArch64, bringing it in-line with GCC https://godbolt.org/z/sfWWv74Mj. In subsequent patches the NEON bfloat16x8_t and SVE svbfloat16_t types (along with bfloat16_t used in arm_sve.h) will be made unconditional too.


https://reviews.llvm.org/D130973

Files:
  clang/docs/LanguageExtensions.rst
  clang/lib/Basic/Targets/AArch64.cpp
  clang/lib/Basic/Targets/AArch64.h
  clang/test/CodeGen/arm-bf16-params-returns.c
  clang/test/CodeGen/arm-mangle-bf16.cpp
  clang/test/Sema/arm-bf16-forbidden-ops.c
  clang/test/Sema/arm-bf16-forbidden-ops.cpp
  clang/test/Sema/arm-bfloat.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130973.449231.patch
Type: text/x-patch
Size: 13548 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220802/7aeb9368/attachment.bin>


More information about the llvm-commits mailing list