================
@@ -6355,6 +6355,14 @@ LangAS CodeGenModule::GetGlobalVarAddressSpace(const 
VarDecl *D) {
   return getTargetCodeGenInfo().getGlobalVarAddressSpace(*this, D);
 }
 
+bool CodeGenModule::isGlobalVarInvariant(const VarDecl *D) {
+  // Only OpenCL and CUDA device globals are handled here. On other targets,
----------------
keshavvinayak01 wrote:

Ah right, this was a simple oversight. The only language-specific part left is 
CUDA/HIP's declaration-based `__constant__` storage.

https://github.com/llvm/llvm-project/pull/218356
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to