[clang] [CIR][HIP] Disable sanitizers for CUDA/HIP compiler generated globals (PR #239184)

Arseniy Obolenskiy via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 5 02:30:27 PST 2026


================
@@ -593,6 +593,17 @@ class CIRBaseBuilderTy : public mlir::OpBuilder {
                                  linkage);
   }
 
+  /// Exclude a compiler-generated global from sanitizer instrumentation.
+  void disableSanitizerForGlobal(cir::GlobalOp gv,
----------------
aobolensk wrote:

Done, LoweringPrepare can't reach CIRGenModule, so it keeps a local copy for the fatbin wrapper

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


More information about the cfe-commits mailing list