[PATCH] Add flag to enable native half type
Pirama Arumuga Nainar
pirama at google.com
Thu May 14 13:37:26 PDT 2015
Hi olista01, steven_wu, ab,
r235215 enables support in LLVM for legalizing f16 type in the IR. AArch64
already had support for this. r235215 and some backend patches brought support
for ARM, X86, X86-64, Mips and Mips64.
This change exposes the LangOption 'NativeHalfType' in the command line, so the
backend legalization can be used if desired. NativeHalfType is enabled for
OpenCL (current behavior) or if '-fnative-half-type' is set.
http://reviews.llvm.org/D9781
Files:
include/clang/Driver/CC1Options.td
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/fp16-ops.c
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9781.25806.patch
Type: text/x-patch
Size: 13584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150514/b83bd41b/attachment.bin>
More information about the cfe-commits
mailing list