[HIP] Add --gpu-bundle-output
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Thu, 29 Apr 2021 19:10:06 +0000 (15:10 -0400)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Thu, 10 Jun 2021 03:31:43 +0000 (23:31 -0400)
commit5fc2673fbce247e107094b28c22cbb2d5f1691a8
tree189d508fbc806bfdfcd6a2a8963dcde29c80209c
parentf6632f11ed196bbb383357e9e7ecd1cf33e08a6a
[HIP] Add --gpu-bundle-output

Added --gpu-bundle-output to control bundling/unbundling output of HIP device compilation.

By default preprocessor expansion, llvm bitcode and assembly are unbundled, code objects are
bundled.

Reviewed by: Artem Belevich, Jan Svoboda

Differential Revision: https://reviews.llvm.org/D101630
clang/include/clang/Driver/Options.td
clang/lib/Driver/Driver.cpp
clang/test/Driver/clang-offload-bundler.c
clang/test/Driver/hip-device-compile.hip
clang/test/Driver/hip-output-file-name.hip
clang/test/Driver/hip-phases.hip
clang/test/Driver/hip-rdc-device-only.hip
clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp