[clang] [llvm] [SPIRV][RFC] Rework / extend support for memory scopes (PR #106429)

Alex Voicu via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 18 13:51:46 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) {
----------------
AlexVlx wrote:

I've taken this suggestion, but typed it out slightly strangely (I can re-work it if there are objections) to keep the IDs still together / allow for easy hoisting if it turns out we want to re-use them elsewhere.

https://github.com/llvm/llvm-project/pull/106429


More information about the cfe-commits mailing list