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

Yury Plyakhin via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 30 09:27:16 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 ||
----------------
YuriPlyakhin wrote:

I plan to revisit this code in the next PRs.

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


More information about the cfe-commits mailing list