[PATCH] D11664: [CUDA] Implemented additional processing steps needed to link with CUDA libdevice bitcode.

Artem Belevich tra at google.com
Thu Jul 30 14:58:41 PDT 2015


tra created this revision.
tra added reviewers: echristo, jholewinski, eliben.
tra added a subscriber: cfe-commits.
tra added a dependency: D11663: [NVPTX] Added an option to run NVVMReflect pass..

  - Added -cuda-uses-libdevice option to enable extra steps:
  - run Internalize on functions in linked bitcode.
  - run Global DCE to eliminate unreferenced internalized functions.
  - pass -nvptx-enable-reflect to the back-end to deal with __nvvm_reflect().

Depends on D11663

http://reviews.llvm.org/D11664

Files:
  include/clang/Basic/LangOptions.def
  include/clang/Driver/CC1Options.td
  lib/CodeGen/BackendUtil.cpp
  lib/CodeGen/CodeGenAction.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGenCUDA/Inputs/device-code.ll
  test/CodeGenCUDA/link-device-bitcode.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11664.31079.patch
Type: text/x-patch
Size: 8405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150730/1b6b352f/attachment.bin>


More information about the cfe-commits mailing list