[PATCH] D45061: [NVPTX, CUDA] Use custom feature detection to handle NVPTX target builtins.

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 10 17:19:51 PDT 2018


tra updated this revision to Diff 141932.
tra added a comment.

@echristo convinced me that this functionality can be implemented without growing a target-specific hook for custom interpretation of constraints used in TARGET_BUILTIN. Instead, we can hide unwieldy feature lists behind a macro.


https://reviews.llvm.org/D45061

Files:
  clang/include/clang/Basic/BuiltinsNVPTX.def
  clang/lib/Basic/Targets/NVPTX.cpp
  clang/lib/Basic/Targets/NVPTX.h
  clang/test/CodeGen/builtins-nvptx-ptx50.cu
  clang/test/CodeGen/builtins-nvptx.c
  llvm/lib/Target/NVPTX/NVPTX.td
  llvm/lib/Target/NVPTX/NVPTXSubtarget.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45061.141932.patch
Type: text/x-patch
Size: 45398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180411/51c8f42f/attachment-0001.bin>


More information about the cfe-commits mailing list