[clang] [llvm] [clang] Simplify device kernel attributes (PR #137882)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu May 8 13:23:41 PDT 2025


================
@@ -227,7 +227,7 @@ void SPIRVTargetCodeGenInfo::setCUDAKernelCallingConvention(
   // Convert HIP kernels to SPIR-V kernels.
   if (getABIInfo().getContext().getLangOpts().HIP) {
     FT = getABIInfo().getContext().adjustFunctionType(
-        FT, FT->getExtInfo().withCallingConv(CC_OpenCLKernel));
+        FT, FT->getExtInfo().withCallingConv(CC_DeviceKernel));
----------------
arsenm wrote:

Not sure setCUDAKernelCallingConvention still needs to exist with this? 

https://github.com/llvm/llvm-project/pull/137882


More information about the llvm-commits mailing list