tra added a comment.

It appears that we need to add special handling for texture/surface references. 
Nominally they are host-side objects, but they are accessed/used from device 
functions as far as Sema is concerned.

E.g. https://godbolt.org/z/z1YnE3 
NVCC and older clang compile it, but the recent one fails because this patch 
does not let the change through.
I think `isCUDADeviceBuiltinTextureType` has problem handling texture refs 
within templates.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91281/new/

https://reviews.llvm.org/D91281

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D91281: [CUDA][HIP]... Artem Belevich via Phabricator via cfe-commits

Reply via email to