================
@@ -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:
Also, I just wanted to identify invariance guaranteed by storage semantics
here, not infer it from a global's uses. Proving invariane for general globals
would expand this into an analysis, and I just wanted this PR to cover the
storage-guaranteed cases!
https://github.com/llvm/llvm-project/pull/218356
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits