]> granicus.if.org Git - clang/commit
[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)
commitfe8aa0dc7cdd91df29b50743850392483f2a9274
tree93f844e9c8b5cb953a85327752133527910f80f0
parentc33e1469f018cf71327e06df054a0ffc87f4d9f8
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330404 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.cpp
test/CodeGenOpenCL/denorms-are-zero.cl