This is an archive of the discontinued LLVM Phabricator instance.

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

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

Details

Summary

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
test/CodeGenOpenCL/denorms-are-zero.cl
10

Could we add a check for the false case too?

19–24

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.