[HIP] Fix device lib selection
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Fri, 30 Apr 2021 18:54:03 +0000 (14:54 -0400)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Sun, 2 May 2021 00:31:11 +0000 (20:31 -0400)
commitc58a6a6fb4110ee1ffd0e45ad98872e55855b310
tree092d8b634d3d09aa0f1ab69b5f7244855af39a89
parent1fcf9247de05bfd960a35c691b9cc47b6a94cd2b
[HIP] Fix device lib selection

Choose optimized device lib bitcode by fp options
for performance.

Reviewed by: Artem Belevich, Fangrui Song

Differential Revision: https://reviews.llvm.org/D101654
clang/include/clang/Basic/CodeGenOptions.def
clang/include/clang/Driver/Options.td
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/Driver/ToolChains/HIP.cpp
clang/test/CodeGenCUDA/correctly-rounded-div.cu [new file with mode: 0644]
clang/test/Driver/hip-device-libs.hip