jdoerfert added a comment. To follow up on my comment why this is NVPTX specific:
Is there a reason why this has to happen in the Cuda ToolChain part? I would have assumed us to add the declarations similar to the ones provided in `__clang_openmp_math.h` whenever we may compile for a target. So, if we have any OpenMP target related code in the TU, we add the header `__clang_openmp_target_math.h` which defines "common" math functions as you did in `__clang_openmp_math.h` (without the NVPTX guard). The runtime will then implement `__kmpc_XXXX` as it sees fit. Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D60907/new/ https://reviews.llvm.org/D60907 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits