[clang] [llvm] Stop using spir_kernel calling convention on non-SPIR targets. (PR #191090)

Nick Sarnie via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 9 08:08:25 PDT 2026


================
@@ -86,6 +85,7 @@ class NVPTXTargetCodeGenInfo : public TargetCodeGenInfo {
   unsigned getDeviceKernelCallingConv() const override {
     return llvm::CallingConv::PTX_Kernel;
   }
+  bool supportsKernelLowering() const override { return true; }
----------------
sarnex wrote:

Yeah I agree, I would expect we can just check `getDeviceKernelCallingConv == SPIR_KERNEL` in the modified `if` check in CGCall.cpp in this PR

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


More information about the cfe-commits mailing list