[all-commits] [llvm/llvm-project] c99b2c: CUDA/HIP: Allow __int128 on the host side

Henry Linjamäki via All-commits all-commits at lists.llvm.org
Tue Jan 4 16:10:04 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c99b2c63169d5aa6499143078790cb3eb87dee45
      https://github.com/llvm/llvm-project/commit/c99b2c63169d5aa6499143078790cb3eb87dee45
  Author: Henry Linjamäki <henry.linjamaki at parmance.com>
  Date:   2022-01-04 (Tue, 04 Jan 2022)

  Changed paths:
    M clang/lib/Sema/Sema.cpp
    M clang/lib/Sema/SemaType.cpp
    A clang/test/SemaCUDA/allow-int128.cu
    A clang/test/SemaCUDA/spirv-int128.cu

  Log Message:
  -----------
  CUDA/HIP: Allow __int128 on the host side

Consider case where `__int128` type is supported by the host target but
not by a device target (e.g. spirv*). Clang emits an error message for
unsupported type even if the device code does not use it. This patch
fixes this issue by emitting the error message when the device code
attempts to use the unsupported type.

Reviewed By: tra

Differential Revision: https://reviews.llvm.org/D111047




More information about the All-commits mailing list