[OpenMP] Consistently use cubin extension for nvlink
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Tue, 21 Nov 2017 14:44:45 +0000 (14:44 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Tue, 21 Nov 2017 14:44:45 +0000 (14:44 +0000)
commit7c78cc52739c3d29589025c130c450a0b349bf7a
treedf6adc689e08bea23f1980769ea9a719cd813113
parentc27e3b6f032e49e464706b69effdf50805a5308b
[OpenMP] Consistently use cubin extension for nvlink

This was previously done in some places, but for example not for
bundling so that single object compilation with -c failed. In
addition cubin was used for all file types during unbundling which
is incorrect for assembly files that are passed to ptxas.
Tighten up the tests so that we can't regress in that area.

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

llvm-svn: 318763
clang/include/clang/Driver/ToolChain.h
clang/lib/Driver/ToolChain.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Driver/ToolChains/Cuda.cpp
clang/lib/Driver/ToolChains/Cuda.h
clang/test/Driver/openmp-offload-gpu.c