]> granicus.if.org Git - clang/commit
Allow __fp16 as a function arg or return type for AArch64
authorOliver Stannard <oliver.stannard@arm.com>
Wed, 27 Aug 2014 16:31:57 +0000 (16:31 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Wed, 27 Aug 2014 16:31:57 +0000 (16:31 +0000)
commit8fd4641d99986e92613dbce3ee97dad6c09c0af8
treecb9424d4aec16affd3a6cf030a629faf10b9a07e
parent3950cc84f1538f082798eec80963c46dad93ae3b
Allow __fp16 as a function arg or return type for AArch64

ACLE 2.0 allows __fp16 to be used as a function argument or return
type. This enables this for AArch64.

This also fixes an existing bug that causes clang to not allow
homogeneous floating-point aggregates with a base type of __fp16. This
is valid for AAPCS64, but not for AAPCS-VFP.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216558 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.def
include/clang/Driver/CC1Options.td
lib/CodeGen/CGExprConstant.cpp
lib/CodeGen/CGExprScalar.cpp
lib/CodeGen/CodeGenTypes.cpp
lib/CodeGen/TargetInfo.cpp
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Sema/SemaType.cpp
test/CodeGen/arm64-aapcs-arguments.c