================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to