================
@@ -555,8 +555,21 @@ AMDGPUTargetCodeGenInfo::getSRetAddrSpace(const 
CXXRecordDecl *RD) const {
 
 LangAS AMDGPUTargetCodeGenInfo::adjustGlobalVarAddressSpace(
     CodeGenModule &CGM, const VarDecl *D, std::optional<LangAS> AS) const {
-  if (AS)
+  if (AS) {
+    // NamedWorkgroupBarrier GVs are declared as __shared__, but the back-end
----------------
shiltian wrote:

I wonder if we really need to make them define as `__shared__`?

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

Reply via email to