[PATCH] D85471: Make clang HIP headers compatible with C++98

Siu Chi Chan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 6 12:56:03 PDT 2020


scchan created this revision.
Herald added subscribers: cfe-commits, yaxunl.
Herald added a project: clang.
scchan requested review of this revision.

Automation to detect compiler features, such as CMake's target_compile_features, 
would attempt to detect compiler features by explicitly using langugage flags.  
This change ensures that the HIP headers would still work with C++98.

Change-Id: I381f76fdaf42196d9272efeaa5a3a159edca0ab1


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85471

Files:
  clang/lib/Headers/__clang_hip_libdevice_declares.h
  clang/lib/Headers/__clang_hip_math.h
  clang/lib/Headers/__clang_hip_runtime_wrapper.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85471.283710.patch
Type: text/x-patch
Size: 3304 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200806/bc79e460/attachment.bin>


More information about the cfe-commits mailing list