]> granicus.if.org Git - clang/commit
[CUDA] use -aux-triple to pass target triple of opposite side of compilation
authorArtem Belevich <tra@google.com>
Tue, 17 Nov 2015 22:28:40 +0000 (22:28 +0000)
committerArtem Belevich <tra@google.com>
Tue, 17 Nov 2015 22:28:40 +0000 (22:28 +0000)
commit556fea86b474f5910814ebd1b643fefcd3064500
treecc531183c239e78925def91f4ac5380a7439fd3b
parentf418a27719a23e48e656f21488728f5c638bad72
[CUDA] use -aux-triple to pass target triple of opposite side of compilation

Clang needs to know target triple for both sides of compilation so that
preprocessor macros and target builtins from both sides are available.

This change augments Compilation class to carry information about
toolchains used during different CUDA compilation passes and refactors
BuildActions to use it when it constructs CUDA jobs.

Removed DeviceTriple from CudaHostAction/CudaDeviceAction as it's no
longer needed.

Differential Revision: http://reviews.llvm.org/D13144

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253385 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Action.h
include/clang/Driver/Compilation.h
include/clang/Driver/Driver.h
lib/Driver/Action.cpp
lib/Driver/Compilation.cpp
lib/Driver/Driver.cpp
lib/Driver/Tools.cpp
test/Driver/cuda-options.cu
test/SemaCUDA/function-target-hd.cu