[HIP] Fix -save-temps
authorYaxun Liu <Yaxun.Liu@amd.com>
Wed, 9 Oct 2019 18:46:43 +0000 (18:46 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Wed, 9 Oct 2019 18:46:43 +0000 (18:46 +0000)
commitbc2350a3412676977ec2ffc801e661aa0cec9de6
tree744b363b1971c72289b57623977e02f96cb838ca
parent609010d0631a9329b6b0a68cb8a5e0dcb28797f8
[HIP] Fix -save-temps

Currently clang does not save some of the intermediate file generated during device compilation for HIP when -save-temps is specified.

This patch fixes that.

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

llvm-svn: 374198
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/lib/Driver/ToolChains/HIP.cpp
clang/lib/Driver/ToolChains/HIP.h
clang/test/Driver/hip-save-temps.hip [new file with mode: 0644]