[clang] [CIR][SYCL] Device kernel caller (PR #213771)
Konstantinos Parasyris via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 10 13:48:02 PDT 2026
================
@@ -783,6 +784,18 @@ const CIRGenFunctionInfo &CIRGenTypes::arrangeCIRFunctionInfo(
return *fi;
}
+const CIRGenFunctionInfo &CIRGenTypes::arrangeDeviceKernelCallerDeclaration(
+ QualType resultType, const FunctionArgList &args) {
+ SmallVector<CanQualType, 16> argTypes;
+ for (const VarDecl *arg : args)
+ argTypes.push_back(astContext.getCanonicalParamType(arg->getType()));
+
+ assert(!cir::MissingFeatures::opCallFnInfoOpts());
----------------
koparasy wrote:
I believe this is not implemented in CIR yet, no? [CIR](https://github.com/llvm/llvm-project/blob/main/clang/lib/CIR/CodeGen/CIRGenTypes.cpp#L753C40-L753C62) vs [OG](https://github.com/llvm/llvm-project/blob/main/clang/lib/CodeGen/CodeGenTypes.h#L293). We guard this case with `assert(!opCallFnInfoOpts())` as other cases do as well.
https://github.com/llvm/llvm-project/pull/213771
More information about the cfe-commits
mailing list