[PATCH] D76520: [CUDA][HIP] Add -Xarch_device and -Xarch_host options

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 20 12:28:49 PDT 2020


yaxunl created this revision.
yaxunl added a reviewer: tra.
Herald added a reviewer: jdoerfert.

The argument after -Xarch_device will be added to the arguments for CUDA/HIP
device compilation and will be removed for host compilation.

The argument after -Xarch_host will be added to the arguments for CUDA/HIP
host compilation and will be removed for device compilation.


https://reviews.llvm.org/D76520

Files:
  clang/include/clang/Driver/Options.td
  clang/include/clang/Driver/ToolChain.h
  clang/lib/Driver/Compilation.cpp
  clang/lib/Driver/ToolChain.cpp
  clang/lib/Driver/ToolChains/Cuda.cpp
  clang/lib/Driver/ToolChains/HIP.cpp
  clang/test/Driver/hip-options.hip

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76520.251718.patch
Type: text/x-patch
Size: 8411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200320/99445396/attachment-0001.bin>


More information about the cfe-commits mailing list