[all-commits] [llvm/llvm-project] c2f501: [CUDA][SPIRV] Assign global address space to CUDA ...
Justin Lebar via All-commits
all-commits at lists.llvm.org
Thu Feb 24 20:52:39 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c2f501f39589a59db9cebc839d0a63dcdc3c5c81
https://github.com/llvm/llvm-project/commit/c2f501f39589a59db9cebc839d0a63dcdc3c5c81
Author: Shangwu Yao <shangwuyao at waymo.com>
Date: 2022-02-24 (Thu, 24 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
(resubmit https://reviews.llvm.org/D119207 after fixing the test for
some build settings)
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/D120366
More information about the All-commits
mailing list