[all-commits] [llvm/llvm-project] 9de4fc: [CUDA][SPIRV] Assign global address space to CUDA ...

Justin Lebar via All-commits all-commits at lists.llvm.org
Thu Feb 17 09:39:05 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9de4fc0f2d3b60542956f7e5254951d049edeb1f
      https://github.com/llvm/llvm-project/commit/9de4fc0f2d3b60542956f7e5254951d049edeb1f
  Author: Shangwu Yao <shangwuyao at waymo.com>
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
    M clang/lib/Basic/Targets/SPIR.h
    M clang/lib/CodeGen/TargetInfo.cpp
    A clang/test/CodeGenCUDASPIRV/kernel-argument.cu

  Log Message:
  -----------
  [CUDA][SPIRV] Assign global address space to CUDA kernel arguments

This patch converts CUDA pointer kernel arguments with default address space to
CrossWorkGroup address space (__global in OpenCL). This is because Generic or
Function (OpenCL's private) is not supported as storage class for kernel pointer types.

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




More information about the All-commits mailing list