Page MenuHomePhabricator

[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

Repository
rL LLVM

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
9 ↗(On Diff #143065)

Could we add a check for the false case too?

14 ↗(On Diff #143065)

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.