[clang] [llvm] [SPIRV][RFC] Rework / extend support for memory scopes (PR #106429)
    Matt Arsenault via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Sep 13 01:13:28 PDT 2024
    
    
  
================
@@ -251,6 +251,24 @@ SPIRV::MemorySemantics::MemorySemantics getMemSemantics(AtomicOrdering Ord) {
   llvm_unreachable(nullptr);
 }
 
+SPIRV::Scope::Scope getMemScope(const LLVMContext &Ctx, SyncScope::ID ID) {
+  SmallVector<StringRef> SSNs;
+  Ctx.getSyncScopeNames(SSNs);
+
+  StringRef MemScope = SSNs[ID];
+  if (MemScope.empty() || MemScope == "all_svm_devices")
----------------
arsenm wrote:
Hard disagree, we do not want aliases. System = "" = all_svm_devices 
https://github.com/llvm/llvm-project/pull/106429
    
    
More information about the llvm-commits
mailing list