
This change matches the CUDA/SPIRV behavior with CUDA/NVPTX, and makes some builtin types and __GCC_ATOMIC_XXX_LOCK_FREE macros the same between the host and device. This is only done when host triple is provided and known, otherwise the behavior is unchanged. Reviewed By: yaxunl Differential Revision: https://reviews.llvm.org/D144047