[llvm] [IPO] Do not merge kernel functions (PR #174254)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 3 03:09:32 PST 2026


================
@@ -697,6 +697,11 @@ static bool canCreateThunkFor(Function *F) {
   if (F->isVarArg())
     return false;
 
+  if (F->getCallingConv() == CallingConv::SPIR_KERNEL ||
+      F->getCallingConv() == CallingConv::AMDGPU_KERNEL ||
+      F->getCallingConv() == CallingConv::PTX_Kernel)
+    return false;
----------------
nikic wrote:

hasKernelCallingConv()

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


More information about the llvm-commits mailing list