[HIP] Allow the new driver to compile HIP in non-RDC mode
authorJoseph Huber <jhuber6@vols.utk.edu>
Thu, 14 Jul 2022 15:46:43 +0000 (11:46 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Wed, 20 Jul 2022 20:52:23 +0000 (16:52 -0400)
commit0c1b32717bcffcf8edf95294e98933bd4c1e76ed
tree15f27b5320d1f569facae379fe02af4dfea2cdd7
parentbc4d2e70518476f0a445761d43fee8b9e6670368
[HIP] Allow the new driver to compile HIP in non-RDC mode

The new driver primarily allows us to support RDC-mode compilations with
proper linking. This is not needed for non-RDC mode compilation, but we
still would like the new driver to be able to handle this mode so we can
transition away from the old driver in the future. This patch adds the
necessary code to support creating a fatbinary for HIP code generation.

Reviewed By: yaxunl

Differential Revision: https://reviews.llvm.org/D129784
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/hip-binding.hip
clang/test/Driver/hip-phases.hip
clang/test/Driver/hip-toolchain-no-rdc.hip