================
@@ -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 added a TODO comment.
https://github.com/llvm/llvm-project/pull/161287
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits