diff options
author | Oliver Stannard <oliver.stannard@arm.com> | 2014-08-27 16:31:57 +0000 |
---|---|---|
committer | Oliver Stannard <oliver.stannard@arm.com> | 2014-08-27 16:31:57 +0000 |
commit | ed8ecc8429e53dc638763fb8f48c620b6dbae174 (patch) | |
tree | e141e1da5d0632038e1b6c04a30997cfd87489a6 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 6107a8f4db4fe74a3884c2b49b6ded009063335e (diff) | |
download | llvm-ed8ecc8429e53dc638763fb8f48c620b6dbae174.zip llvm-ed8ecc8429e53dc638763fb8f48c620b6dbae174.tar.gz llvm-ed8ecc8429e53dc638763fb8f48c620b6dbae174.tar.bz2 |
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.
llvm-svn: 216558
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 3eb6df8..6c176e8 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1500,6 +1500,8 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Opts.CurrentModule = Args.getLastArgValue(OPT_fmodule_name); Opts.ImplementationOfModule = Args.getLastArgValue(OPT_fmodule_implementation_of); + Opts.NativeHalfType = Opts.NativeHalfType; + Opts.HalfArgsAndReturns = Args.hasArg(OPT_fallow_half_arguments_and_returns); if (!Opts.CurrentModule.empty() && !Opts.ImplementationOfModule.empty() && Opts.CurrentModule != Opts.ImplementationOfModule) { |