[all-commits] [llvm/llvm-project] abbdc1: [CUDA][SPIRV] Use OpenCLKernel CC for CUDA -> SPIRV
Daniele Castagna via All-commits
all-commits at lists.llvm.org
Mon Dec 6 15:12:23 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: abbdc13e6803562bce4e42866a9ebf7f2a04a89b
https://github.com/llvm/llvm-project/commit/abbdc13e6803562bce4e42866a9ebf7f2a04a89b
Author: Daniele Castagna <dcastagna at chromium.org>
Date: 2021-12-06 (Mon, 06 Dec 2021)
Changed paths:
M clang/lib/Sema/SemaType.cpp
A clang/test/CodeGenCUDASPIRV/kernel-cc.cu
Log Message:
-----------
[CUDA][SPIRV] Use OpenCLKernel CC for CUDA -> SPIRV
Select the OpenCLKernel calling convention for kernels when compiling
CUDA targeting SPIR-V.
In this way the generated LLVM IR will have a spir_kernel calling
convention that will be translated to an OpEntryPoint when converting
to SPIRV.
Reviewed By: jlebar, tra
Differential Revision: https://reviews.llvm.org/D114407
More information about the All-commits
mailing list