diff options
author | Artem Belevich <tra@google.com> | 2015-09-10 18:24:23 +0000 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2015-09-10 18:24:23 +0000 |
commit | 7cb25c9b69c9095ea268b13c4b75d92e3f2ac3e9 (patch) | |
tree | a673f37406032a92c70b87378a9ed24350c149e7 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 7ad7ae1fac53b9f5743eb55808a0d39f63295dff (diff) | |
download | bcm5719-llvm-7cb25c9b69c9095ea268b13c4b75d92e3f2ac3e9.tar.gz bcm5719-llvm-7cb25c9b69c9095ea268b13c4b75d92e3f2ac3e9.zip |
[CUDA] Postprocess bitcode linked in during device-side CUDA compilation.
Link in and internalize the symbols we need from supplied bitcode library.
Differential Revision: http://reviews.llvm.org/D11664
llvm-svn: 247317
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 435811c105f..7caa7095969 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1406,6 +1406,9 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, if (Args.hasArg(OPT_fcuda_is_device)) Opts.CUDAIsDevice = 1; + if (Args.hasArg(OPT_fcuda_uses_libdevice)) + Opts.CUDAUsesLibDevice = 1; + if (Args.hasArg(OPT_fcuda_allow_host_calls_from_host_device)) Opts.CUDAAllowHostCallsFromHostDevice = 1; |