[clang] [clang-sycl-linker] Generate SymbolTable for each image (PR #161287)

Nick Sarnie via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 30 07:46:30 PDT 2025


================
@@ -466,6 +466,12 @@ static Error runAOTCompile(StringRef InputFile, StringRef OutputFile,
   return createStringError(inconvertibleErrorCode(), "Unsupported arch");
 }
 
+bool isKernel(const Function &F) {
+  const CallingConv::ID CC = F.getCallingConv();
+  return CC == CallingConv::SPIR_KERNEL || CC == CallingConv::AMDGPU_KERNEL ||
----------------
sarnex wrote:

Is there an IR function attribute we can use instead of checking the CC? I would prefer to not have a hardcoded list here. 

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


More information about the cfe-commits mailing list