[PATCH] D77238: [CUDA][NFC] Split math.h functions out of __clang_cuda_device_functions.h

Johannes Doerfert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 1 13:30:54 PDT 2020


jdoerfert created this revision.
jdoerfert added a reviewer: tra.
Herald added subscribers: bollu, yaxunl, mgorny.
Herald added a project: clang.
jdoerfert added a child revision: D77239: [CUDA][NFCI] Use unqualified lookup for math functions.

This is not supported to change anything but allow us to reuse the math
functions separately from the device functions, e.g., source them at
different times. This will be used by the OpenMP overlay.

This also adds two `return` keywords that were missing.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77238

Files:
  clang/lib/Headers/CMakeLists.txt
  clang/lib/Headers/__clang_cuda_device_functions.h
  clang/lib/Headers/__clang_cuda_math.h
  clang/lib/Headers/__clang_cuda_runtime_wrapper.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77238.254289.patch
Type: text/x-patch
Size: 35704 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200401/ccd79d3c/attachment-0001.bin>


More information about the cfe-commits mailing list