[clang] [llvm] [CIR][CUDA] Introduce cu.var_registration for shadow and attach device-side var metadata, internalize device side variables, and lower poison attribute (PR #190087)

Akimasa Watanuki via cfe-commits cfe-commits at lists.llvm.org
Tue May 19 00:53:50 PDT 2026


================
@@ -20,6 +20,25 @@
 using namespace clang;
 using namespace CIRGen;
 
+static std::unique_ptr<MangleContext> initDeviceMC(CIRGenModule &cgm) {
----------------
Men-cotton wrote:

If we keep `deviceMC` in `CIRGenNVCUDARuntime` instead of the base class, the changes in `CIRGenCUDARuntime.cpp` seem unnecessary.

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


More information about the cfe-commits mailing list