summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2016-07-08 20:28:29 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2016-07-08 20:28:29 +0000
commit79c99fb7ebca48590f3535378509d226f588b014 (patch)
tree6cd211b7571eddfe71be0fb96983dfd28ed76dad /clang/lib/CodeGen
parent0733e6b61c82ca33ce0a414a420814afce982d27 (diff)
downloadbcm5719-llvm-79c99fb7ebca48590f3535378509d226f588b014.tar.gz
bcm5719-llvm-79c99fb7ebca48590f3535378509d226f588b014.zip
[OpenCL] Add missing -cl-no-signed-zeros option into driver
Add OCL option -cl-no-signed-zeros to driver options. Also added to opencl.cl testcases. Patch by Aaron En Ye Shi. Differential Revision: http://reviews.llvm.org/D22067 llvm-svn: 274923
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 02a85ef0eed..242b5962070 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -1732,6 +1732,8 @@ void CodeGenModule::ConstructAttributeList(
llvm::toStringRef(CodeGenOpts.SoftFloat));
FuncAttrs.addAttribute("stack-protector-buffer-size",
llvm::utostr(CodeGenOpts.SSPBufferSize));
+ FuncAttrs.addAttribute("no-signed-zeros-fp-math",
+ llvm::toStringRef(CodeGenOpts.NoSignedZeros));
if (CodeGenOpts.StackRealignment)
FuncAttrs.addAttribute("stackrealign");
OpenPOWER on IntegriCloud