Page MenuHomePhabricator

[OpenCL] Add 'denorms-are-zero' function attribute

Authored by krisb on Apr 19 2018, 2:57 AM.



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

Diff Detail

Event Timeline

krisb created this revision.Apr 19 2018, 2:57 AM
Anastasia added inline comments.Apr 19 2018, 3:43 AM

Could we add a check for the false case too?


Should we check denorms-are-zero here as well?

krisb updated this revision to Diff 143072.Apr 19 2018, 5:16 AM

Applied the comments

krisb marked 2 inline comments as done.Apr 19 2018, 5:18 AM
yaxunl accepted this revision.Apr 19 2018, 5:39 AM

LGTM. Thanks!

This revision is now accepted and ready to land.Apr 19 2018, 5:39 AM
This revision was automatically updated to reflect the committed changes.