]> granicus.if.org Git - clang/commit
[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)
commit53d8fcb5c281832f3c4bd5ae5dcdf1d23ac95656
tree0935a968304b8d0150b6fd4bc1d4542f096eae38
parent9185e52f3e18192b2a680494e9cee3851f5cc024
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335765 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
lib/Driver/ToolChains/HIP.cpp
test/Driver/Inputs/hip_dev_lib/irif.amdgcn.bc [new file with mode: 0644]
test/Driver/Inputs/hip_dev_lib/ockl.amdgcn.bc [new file with mode: 0644]
test/Driver/Inputs/hip_dev_lib/oclc_correctly_rounded_sqrt_on.amdgcn.bc [new file with mode: 0644]
test/Driver/Inputs/hip_dev_lib/oclc_daz_opt_off.amdgcn.bc [new file with mode: 0644]
test/Driver/Inputs/hip_dev_lib/oclc_daz_opt_on.amdgcn.bc [new file with mode: 0644]
test/Driver/Inputs/hip_dev_lib/oclc_finite_only_off.amdgcn.bc [new file with mode: 0644]
test/Driver/Inputs/hip_dev_lib/oclc_isa_version_803.amdgcn.bc [new file with mode: 0644]
test/Driver/Inputs/hip_dev_lib/oclc_isa_version_900.amdgcn.bc [new file with mode: 0644]
test/Driver/Inputs/hip_dev_lib/oclc_unsafe_math_off.amdgcn.bc [new file with mode: 0644]
test/Driver/Inputs/hip_dev_lib/ocml.amdgcn.bc [new file with mode: 0644]
test/Driver/Inputs/hip_dev_lib/opencl.amdgcn.bc [new file with mode: 0644]
test/Driver/hip-device-libs.hip [new file with mode: 0644]