[PATCH] D74387: [OpenMP][SYCL] Improve diagnosing of unsupported types usage
Mariya Podchishchaeva via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 26 03:44:54 PDT 2020
Fznamznon added a comment.
The tests are failing because calling function with unsupported type in arguments/return value is diagnosed as well, i.e. :
double math(float f, double d, long double ld) { ... } // `ld` is not used inside the `math` function
#pragma omp target map(r)
{ r += math(f, d, ld); } // error: 'math' requires 128 bit size 'long double' type support, but device 'nvptx64-nvidia-cuda' does not support it
Should we diagnose calls to such functions even if those arguments/return value aren't used?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74387/new/
https://reviews.llvm.org/D74387
More information about the cfe-commits
mailing list