summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@arm.com>2013-01-23 11:56:20 +0000
committerJoey Gouly <joey.gouly@arm.com>2013-01-23 11:56:20 +0000
commitdd7f4566b1a8b4d8e8321d2bca2385841a0b0130 (patch)
treebbe20049d3bdd39d6d9e0706047d4e1076733723 /clang/lib/Frontend/CompilerInvocation.cpp
parent5787924e85e18399779e4a462200fa70cadd44fc (diff)
downloadbcm5719-llvm-dd7f4566b1a8b4d8e8321d2bca2385841a0b0130.tar.gz
bcm5719-llvm-dd7f4566b1a8b4d8e8321d2bca2385841a0b0130.zip
Add a new LangOpt NativeHalfType. This option allows for native half/fp16
operations (as opposed to storage only half/fp16). Also add some semantic checks for OpenCL half types. llvm-svn: 173254
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 90ace3f1dc6..eab9cc3cf10 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -989,6 +989,7 @@ void CompilerInvocation::setLangDefaults(LangOptions &Opts, InputKind IK,
Opts.CXXOperatorNames = 1;
Opts.LaxVectorConversions = 0;
Opts.DefaultFPContract = 1;
+ Opts.NativeHalfType = 1;
}
if (LangStd == LangStandard::lang_cuda)
OpenPOWER on IntegriCloud