[clang] [llvm] [SPIRV][RFC] Rework / extend support for memory scopes (PR #106429)
Vyacheslav Levytskyy via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 16 03:52:02 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) {
----------------
VyacheslavLevytskyy wrote:
I'd say that removal of SSIDs struct from lib/Target/SPIRV/SPIRVInstructionSelector.cpp and this implementation of `getMemScope()` may be enough. Here we may initialize and refer all scopes concisely.
https://github.com/llvm/llvm-project/pull/106429
More information about the cfe-commits
mailing list