[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:55:57 PST 2026
================
@@ -797,6 +797,22 @@ CIRGenModule::getOrCreateCIRGlobal(StringRef mangledName, mlir::Type ty,
"external const declaration with initializer");
}
+ // TODO(cir): if this method is used to handle functions we must have
----------------
ZakyHermawan wrote:
This is just stuff from [incubator](https://github.com/llvm/clangir/blob/main/clang/lib/CIR/CodeGen/CIRGenModule.cpp#L1289).
I will remove it, because getOrCreateCIRGlobal is specifically for global variables.
https://github.com/llvm/llvm-project/pull/184248
More information about the cfe-commits
mailing list