================
@@ -74,6 +74,24 @@ void CIRGenFunction::emitSYCLKernelCaller(
eraseEmptyAndUnusedBlocks(funcOp);
}
+static void setSYCLKernelAttributes(CIRGenFunction &cgf, cir::FuncOp fn) {
+ mlir::MLIRContext *ctx = &cgf.getMLIRContext();
+ // SYCL 2020 device language restrictions require forward progress and
+ // disallow recursion.
+ fn->setAttr(cir::CIRDialect::getNoRecurseAttrName(),
+ mlir::UnitAttr::get(ctx));
+ if (cgf.checkIfFunctionMustProgress())
+ fn->setAttr(cir::CIRDialect::getMustProgressAttrName(),
+ mlir::UnitAttr::get(ctx));
+}
+
+void CIRGenModule::addSYCLModuleIdAttr(cir::FuncOp fn) {
----------------
koparasy wrote:
Yes deferred when we start supporting RDC.
https://github.com/llvm/llvm-project/pull/224667
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits