[HIP] Support flush denormals bitcode
authorAaron Enye Shi <enye.shi@gmail.com>
Wed, 27 Jun 2018 18:58:55 +0000 (18:58 +0000)
committerAaron Enye Shi <enye.shi@gmail.com>
Wed, 27 Jun 2018 18:58:55 +0000 (18:58 +0000)
commitdfb1bf0478ed44d40c89c22bed485274e708cf82
tree8b2817aa967e32fb0d599985e95bd144c26f2461
parent6535b3562ff14b6ac2881f3c7a1b475615cc6ddc
[HIP] Support flush denormals bitcode

Summary:
Use oclc_daz_opt_on.amdgcn.bc bitcode when option fcuda-flush-denormal-to-zero is enabled, otherwise use oclc_daz_opt_off.amdgcn.bc bitcode. Added lit tests to verify that the correct bitcode is linked when -fcuda-flush-denormal-to-zero option is enabled or disabled.

Reviewers: yaxunl, scchan, b-sumner

Reviewed By: yaxunl, scchan, b-sumner

Subscribers: cfe-commits, yaxunl

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

llvm-svn: 335765
13 files changed:
clang/lib/Driver/ToolChains/HIP.cpp
clang/test/Driver/Inputs/hip_dev_lib/irif.amdgcn.bc [new file with mode: 0644]
clang/test/Driver/Inputs/hip_dev_lib/ockl.amdgcn.bc [new file with mode: 0644]
clang/test/Driver/Inputs/hip_dev_lib/oclc_correctly_rounded_sqrt_on.amdgcn.bc [new file with mode: 0644]
clang/test/Driver/Inputs/hip_dev_lib/oclc_daz_opt_off.amdgcn.bc [new file with mode: 0644]
clang/test/Driver/Inputs/hip_dev_lib/oclc_daz_opt_on.amdgcn.bc [new file with mode: 0644]
clang/test/Driver/Inputs/hip_dev_lib/oclc_finite_only_off.amdgcn.bc [new file with mode: 0644]
clang/test/Driver/Inputs/hip_dev_lib/oclc_isa_version_803.amdgcn.bc [new file with mode: 0644]
clang/test/Driver/Inputs/hip_dev_lib/oclc_isa_version_900.amdgcn.bc [new file with mode: 0644]
clang/test/Driver/Inputs/hip_dev_lib/oclc_unsafe_math_off.amdgcn.bc [new file with mode: 0644]
clang/test/Driver/Inputs/hip_dev_lib/ocml.amdgcn.bc [new file with mode: 0644]
clang/test/Driver/Inputs/hip_dev_lib/opencl.amdgcn.bc [new file with mode: 0644]
clang/test/Driver/hip-device-libs.hip [new file with mode: 0644]