[all-commits] [llvm/llvm-project] 8bd13a: [CUDA][SPIRV] Match builtin types and __GCC_ATOMIC...

Shangwu Yao via All-commits all-commits at lists.llvm.org
Wed Feb 22 07:46:21 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8bd13ad6c5374f39408be4a34989007999a57ee9
      https://github.com/llvm/llvm-project/commit/8bd13ad6c5374f39408be4a34989007999a57ee9
  Author: ShangwuYao <shangwuyao at gmail.com>
  Date:   2023-02-22 (Wed, 22 Feb 2023)

  Changed paths:
    M clang/lib/Basic/Targets/SPIR.h
    A clang/test/CodeGenCUDASPIRV/cuda-types.cu

  Log Message:
  -----------
  [CUDA][SPIRV] Match builtin types and __GCC_ATOMIC_XXX_LOCK_FREE macros on host/device

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




More information about the All-commits mailing list