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 | 4298cae65607c6ff2dae34675b47e7ac880bc6fc (patch) | |
tree | b045fc448509404277162dc30318c1374167df60 /lib/Frontend/CompilerInvocation.cpp | |
parent | 80ba331d315f32305dbc43baeb229e9f44952992 (diff) | |
download | clang-4298cae65607c6ff2dae34675b47e7ac880bc6fc.tar.gz |
[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247317 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 435811c105..7caa709596 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/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; |