[clang] [CIR][CUDA] Global emission for fatbin symbols (PR #187636)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 25 13:50:45 PDT 2026


================
@@ -151,6 +151,16 @@ CIRGenModule::CIRGenModule(mlir::MLIRContext &mlirContext,
                                                 /*line=*/0,
                                                 /*column=*/0));
   }
+
+  // Set CUDA GPU binary handle.
+  if (langOpts.CUDA) {
+    std::string cudaBinaryName = codeGenOpts.CudaGpuBinaryFileName;
----------------
andykaylor wrote:

```suggestion
    StringRef cudaBinaryName = codeGenOpts.CudaGpuBinaryFileName;
```
No need to make a copy here.

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


More information about the cfe-commits mailing list