[clang] [CIR][CUDA] Handle local, __device__, __shared__, and __constant__ variables (PR #184248)

Zaky Hermawan via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 5 11:53:37 PST 2026


================
@@ -665,11 +668,6 @@ void CIRGenFunction::emitStaticVarDecl(const VarDecl &d,
 
   var.setAlignment(alignment.getAsAlign().value());
 
-  // There are a lot of attributes that need to be handled here. Until
----------------
ZakyHermawan wrote:

I am changing it using reference from incubator [here](https://github.com/llvm/clangir/blob/main/clang/lib/CIR/CodeGen/CIRGenDecl.cpp#L731).

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


More information about the cfe-commits mailing list