]> granicus.if.org Git - clang/commit
[HIP] Support -emit-llvm for device compilation
authorYaxun Liu <Yaxun.Liu@amd.com>
Thu, 3 Oct 2019 03:27:43 +0000 (03:27 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Thu, 3 Oct 2019 03:27:43 +0000 (03:27 +0000)
commitaba8d4b444c5c767187edf2d99faf98b71ad2dc0
treef45594a0570c41a8656126085250313d9db5a93d
parentc10a6a0580e007991d1e3c7e6cb120c6289d1f7c
[HIP] Support -emit-llvm for device compilation

Sometimes it is useful to compile HIP device code to LLVM BC. It is not convenient to use clang -cc1 since
there are lots of options needed.

This patch allows clang driver to compile HIP device code to LLVM BC with -emit-llvm -c.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373561 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Driver.cpp
test/Driver/hip-device-compile.hip [new file with mode: 0644]