[OpenCL] Add 'denorms-are-zero' function attribute
authorAlexey Sotkin <alexey.sotkin@intel.com>
Fri, 20 Apr 2018 08:08:04 +0000 (08:08 +0000)
committerAlexey Sotkin <alexey.sotkin@intel.com>
Fri, 20 Apr 2018 08:08:04 +0000 (08:08 +0000)
commit3858e26f228392fd448b5df553b5bec7747aaebc
tree445664e9ea8c1b7e92db40d60cf3882e6c40e1fc
parent79e4f7fadb5f6588f5933b80fccfdb1fb8db5532
[OpenCL] Add 'denorms-are-zero' function attribute

Summary:
Generate attribute 'denorms-are-zero'='true' if '-cl-denorms-are-zero'
compile option was specified and 'denorms-are-zero'='false' otherwise.

Patch by krisb

Reviewers: Anastasia, yaxunl

Reviewed By:  yaxunl

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D45808

llvm-svn: 330404
clang/lib/CodeGen/CGCall.cpp
clang/test/CodeGenOpenCL/denorms-are-zero.cl