[clang] [CIR][CUDA] Upstream device stub name mangling (PR #177790)

Konstantinos Parasyris via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 27 09:20:09 PST 2026


================
@@ -748,7 +748,9 @@ cir::FuncOp CIRGenFunction::generateCode(clang::GlobalDecl gd, cir::FuncOp fn,
       emitConstructorBody(args);
     } else if (getLangOpts().CUDA && !getLangOpts().CUDAIsDevice &&
                funcDecl->hasAttr<CUDAGlobalAttr>()) {
-      getCIRGenModule().errorNYI(bodyRange, "CUDA kernel");
+      // TODO(cir): Emit device stub body with kernel launch runtime calls
----------------
koparasy wrote:

I agree with Andy on this one. A minimal CUDA runtime would suffice now, without emitting stub registration etc.

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


More information about the cfe-commits mailing list