Add -fnative-half-arguments-and-returns
authorPirama Arumuga Nainar <pirama@google.com>
Fri, 18 Mar 2016 16:58:36 +0000 (16:58 +0000)
committerPirama Arumuga Nainar <pirama@google.com>
Fri, 18 Mar 2016 16:58:36 +0000 (16:58 +0000)
commit8e2e9d6f4c295deb72a1b8f7b7f4c4adbc317460
treedc48c03c7a1a051c06d611f59aa77276c2c62aa1
parenta814d3d288382baab2fd000a686e2c9095a4027c
Add -fnative-half-arguments-and-returns

Summary:
r246764 handled __fp16 arguments and returns for AAPCS, but skipped this
handling for OpenCL.  Simlar to OpenCL, RenderScript also handles __fp16
type natively.

This patch adds the -fnative-half-arguments-and-returns command line
flag to allow such languages to skip this coercion of __fp16.

Reviewers: srhines, olista01

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D18138

llvm-svn: 263795
clang/include/clang/Basic/LangOptions.def
clang/include/clang/Driver/CC1Options.td
clang/lib/CodeGen/TargetInfo.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/CodeGen/arm-fp16-arguments.c