[PATCH] D45780: [CUDA] added missing __ldg(const signed char *)

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 18 11:36:53 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rC330280: [CUDA] added missing __ldg(const signed char *) (authored by tra, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D45780?vs=142970&id=142974#toc

Repository:
  rC Clang

https://reviews.llvm.org/D45780

Files:
  lib/Headers/__clang_cuda_intrinsics.h


Index: lib/Headers/__clang_cuda_intrinsics.h
===================================================================
--- lib/Headers/__clang_cuda_intrinsics.h
+++ lib/Headers/__clang_cuda_intrinsics.h
@@ -277,6 +277,9 @@
 inline __device__ unsigned char __ldg(const unsigned char *ptr) {
   return __nvvm_ldg_uc(ptr);
 }
+inline __device__ signed char __ldg(const signed char *ptr) {
+  return __nvvm_ldg_uc((const unsigned char *)ptr);
+}
 inline __device__ unsigned short __ldg(const unsigned short *ptr) {
   return __nvvm_ldg_us(ptr);
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45780.142974.patch
Type: text/x-patch
Size: 538 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180418/571ce050/attachment.bin>


More information about the cfe-commits mailing list