diff options
author | Artem Belevich <tra@google.com> | 2015-05-07 19:34:16 +0000 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2015-05-07 19:34:16 +0000 |
commit | 52cc487ba8a10fd7c806d38c232fda8b5a1fb322 (patch) | |
tree | e068490d448401b58dd006b6a7239f9045105d16 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | f52123b45406bbabd344d2f990ddadddc1898a00 (diff) | |
download | llvm-52cc487ba8a10fd7c806d38c232fda8b5a1fb322.zip llvm-52cc487ba8a10fd7c806d38c232fda8b5a1fb322.tar.gz llvm-52cc487ba8a10fd7c806d38c232fda8b5a1fb322.tar.bz2 |
[cuda] Include GPU binary into host object file and generate init/deinit code.
- added -fcuda-include-gpubinary option to incorporate results of
device-side compilation into host-side one.
- generate code to register GPU binaries and associated kernels
with CUDA runtime and clean-up on exit.
- added test case for init/deinit code generation.
Differential Revision: http://reviews.llvm.org/D9507
llvm-svn: 236765
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index b8db96e..aae2ae0 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -878,7 +878,7 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn, else if (getLangOpts().CUDA && !getLangOpts().CUDAIsDevice && FD->hasAttr<CUDAGlobalAttr>()) - CGM.getCUDARuntime().EmitDeviceStubBody(*this, Args); + CGM.getCUDARuntime().emitDeviceStub(*this, Args); else if (isa<CXXConversionDecl>(FD) && cast<CXXConversionDecl>(FD)->isLambdaToBlockPointerConversion()) { // The lambda conversion to block pointer is special; the semantics can't be |