]> granicus.if.org Git - clang/commit
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)
commita98f4d0163adf9868db41b08dc0669bf585a7749
tree868df415fd61570231f0f069c4881abe898cbc60
parenta4c20f8576a104262aa5e1ceaac18d77f053bab7
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263795 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.def
include/clang/Driver/CC1Options.td
lib/CodeGen/TargetInfo.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/arm-fp16-arguments.c